Skip to main content

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

NameTypeRequiredDescription
countryintegerYes—

Request body fields

NameTypeRequired
codeanyNo
enabledbooleanNo
nameanyNo

Responses

CodeDescription
200OK (Envelope)
400Bad Request (ErrorResponse)
401Unauthorized
404Not Found
429Too Many Requests (ErrorResponse)
500Internal Server Error (ErrorResponse)
503Service Unavailable (ErrorResponse)
Open this operation in the API reference