updateCountry
Update a country record to enable or disable it on your site by toggling its active status. Only send the fields you want to change.
Instructions
Update a country (corrections / active toggle) - Update a country record. Read-mostly - primary use is toggling active to enable/disable a country on the site. Fields omitted are untouched (PATCH semantics - only send what you want to change).
Required: country_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country_id | Yes | ||
| country_code | No | ISO 3166-1 alpha-2 (e.g. `US`, `CA`, `GB`) | |
| country_name | No | ||
| active | No | ||
| _clear_fields | No | Column names to clear to empty string. Available on every `update*` operation. Works on base columns AND EAV/`users_meta` rows (rows preserved with `value=""`). To actually clear a field you MUST use this parameter — sending the field with `""` alone is a no-op (BD drops empty values). To remove a `users_meta` row entirely, use `deleteUserMeta`. See **Rule: Clearing fields**. Example: `_clear_fields: ["h2", "hero_link_url"]`. |