updateState
Update a state record for corrections: send only the fields to change. Requires location_id. Use _clear_fields to empty specific values.
Instructions
Update a state (corrections only) - Update a state row. Read-mostly - use for corrections. Fields omitted are untouched (PATCH semantics - only send what you want to change).
Required: location_id.
Warning on state_filename: it's the URL slug in every search page using this state. Rename -> broken URLs + orphaned SEO pages. Create redirects if you must.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| location_id | Yes | ||
| state_sn | No | ||
| state_ln | No | ||
| state_filename | No | URL slug. Rename breaks inbound URLs - create redirects. | |
| country_sn | 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"]`. |