Spaces method and path for this operation:
Refer to Spaces for more information.
Returns a paginated list of field definitions (field library entries) for the given owner. Requires the Cases feature to be enabled in the space.
Query parameters
-
The application that owns the field definitions (for example
cases,observability, orsecuritySolution). Required. -
When true, returns only global field definitions (rendered on every case). When false, returns all definitions. Omit to return all.
-
The page number to return.
Default value is
1. -
The number of items to return. Limited to 100 items.
Maximum value is
100. Default value is20. -
The field to sort by. When omitted, results are sorted by
fieldDefinitionIdascending andsortOrderis ignored.Values are
name,owner,isGlobal, ordisplayOrder. -
Determines the sort order.
Values are
ascordesc. Default value isdesc. -
A case-insensitive substring to match against each definition's
nameanddescriptionfields. Definitions where neither field contains the substring are excluded.Maximum length is
1000.
curl \
--request GET 'https://localhost:5601/api/cases/field_definitions?owner=string' \
--header "Authorization: $API_KEY"
{
"fieldDefinitions": [
{
"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"
}
],
"page": 1,
"perPage": 20,
"total": 1
}
{
"error": "Bad Request",
"message": "Template [invalid-template-id] not found for owner [cases]",
"statusCode": 400
}
{
"error": "Unauthorized",
"message": "Unable to authenticate with the provided credentials.",
"statusCode": 401
}
{
"error": "Forbidden",
"message": "Unauthorized to access cases",
"statusCode": 403
}