Spaces method and path for this operation:
get /s/{space_id}/api/cases/field_definitions/{field_definition_id}
Refer to Spaces for more information.
Returns a single field definition by its ID. Requires the Cases feature to be enabled in the space.
GET
/api/cases/field_definitions/{field_definition_id}
curl \
--request GET 'https://localhost:5601/api/cases/field_definitions/{field_definition_id}' \
--header "Authorization: $API_KEY"
Response examples (200)
{
"definition": "name: priority\nlabel: Priority\ntype: keyword\ncontrol: SELECT_BASIC\nmetadata:\n options: [low, medium, high]\n default: medium\n",
"description": "Ticket priority level.",
"fieldDefinitionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"isGlobal": false,
"name": "priority",
"owner": "cases"
}
Response examples (401)
{
"error": "Unauthorized",
"message": "Unable to authenticate with the provided credentials.",
"statusCode": 401
}
Response examples (403)
{
"error": "Forbidden",
"message": "Unauthorized to access cases",
"statusCode": 403
}
Response examples (404)
{
"error": "Not Found",
"message": "Saved object [cases-template/9da1ea2a-09f8-4d0e-bf9d-09bf8c9d0f42] not found",
"statusCode": 404
}