Edit Country
API operation: Open the endpoint in Scalar
Use PUT /countries/{country} to update one country. The current public operation is Country.update.
Updates are limited to role levels 0 and 1. Fields include name, code, and enabled.
Legacy SDK example
const response = await ordering.countries(countryId).save(changes)
Confirm the SDK package and version before using this helper.
OpenAPI reference
Operation: PUT /countries/{country}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
country | integer | Yes | — |
Request body fields
| Name | Type | Required |
|---|---|---|
code | any | No |
enabled | boolean | No |
name | any | No |
Responses
| Code | Description |
|---|---|
| 200 | OK (Envelope) |
| 400 | Bad Request (ErrorResponse) |
| 401 | Unauthorized |
| 404 | Not Found |
| 429 | Too Many Requests (ErrorResponse) |
| 500 | Internal Server Error (ErrorResponse) |
| 503 | Service Unavailable (ErrorResponse) |