---
title: "Edit Country"
description: "Use PUT /countries/{country} to update one country. The current public operation is Country.update."
canonical: https://docs.ordering.co/api-reference/guides/update-country/
---

# Edit Country

> **API operation:** [Open the endpoint in Scalar](https://docs.ordering.co/api-reference/#tag/countries/PUT/countries/{country})

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

```javascript
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)   |

[Open this operation in the API reference](https://docs.ordering.co/api-reference/#tag/countries/PUT/countries/{country})
