[POST] .../v1/country/edit
Edits country reference record. Use this method to update an existing country reference record while preserving its identity in related data. It returns row_affected, requires a positive id and applies optional country field changes through the persistent layer. The caller must have country edit permission; missing body, invalid id, denied access, invalid field values, missing records and storage errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| alfa2 | String | Optional | Two-character country code, usually ISO 3166-1 alpha-2. |
| alfa3 | String | Optional | Three-character country code, usually ISO 3166-1 alpha-3. |
| code | String | Optional | Three-digit country code. |
| fullname | String | Optional | Full country name. |
| id | Int64 | Required | Country ID. |
| name | String | Optional | Country name. |
Request Example
{
"id": 860,
"name": "Uzbekistan",
"fullname": "Republic of Uzbekistan"
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"row_affected": 1
}
}