Update a field definition
- Base URL
-
https://{kibana_url}
- PUT /api/cases/field_definitions/{field_definition_id}
- PUT /s/{space_id}/api/cases/field_definitions/{field_definition_id}
Updates editable attributes of a field definition. Server-managed attributes (displayOrder, legacyKey) are preserved. You must have the "Manage templates" sub-privilege for the Cases feature of the owning solution. A field's name and YAML type are immutable after creation — an attempt to change either returns 409 with attributes.code = "field_identity_immutable" and attributes.changed listing which identity attributes were modified. Setting isGlobal to false when the field is linked to an active custom field in the Cases configuration returns 409; otherwise demotion is allowed. Requires the Cases feature to be enabled in the space. Use dry_run=true to validate the request without writing anything.
Responses
The request body is invalid, the YAML definition is malformed, the name does not match the YAML definition's name, or the owner would be changed.
Authorization information is missing or invalid.
The user does not have the manage templates privilege for the owner.
A field's name or type cannot be changed after creation, or a global field cannot be demoted while linked to an active custom field.