ReDoc documentation
Delete a region belonging to the given country. Cascades to its locale names.
200 Success.
401 Unauthorized
Internal Server error
Unexpected error
trueUpdate an existing region belonging to the given country. Locale names use replace semantics: the provided array fully replaces the existing set of locale-name rows for the region. A region cannot be moved to a different country through this operation.
required | object (directory-region-rest-api-data-region-create-request-interface) Writable fields accepted when creating a region. Deliberately excludes region_id, country_id, and system: region_id is assigned by the database, country_id comes from the countryId URL segment, and system is always server-computed. Magento's webapi framework resolves setters strictly against this interface, so sending any of those three fields in a request body is rejected with a 400 InputException ("... is not supported") rather than being accepted and applied. |
200 Success.
401 Unauthorized
Internal Server error
Unexpected error
{- "region": {
- "code": "string",
- "default_name": "string",
- "locale_names": [
- {
- "locale": "string",
- "name": "string"
}
]
}
}{- "code": "string",
- "country_id": "string",
- "default_name": "string",
- "locale_names": [
- {
- "locale": "string",
- "name": "string"
}
], - "region_id": 0,
- "system": true
}