Get a case template by ID
https://{kibana_url}
- GET /api/cases/templates/{template_id}
Returns the details of a case template. Requires the Cases feature to be enabled in the space.
Path Parameters
-
template_idstring · max: 36required -
The identifier for the template.
Query Parameters
-
versioninteger · min: 1 The version number of the template to retrieve. If omitted, the latest version is returned.
Responses
Indicates a successful call.
-
The username of the template author.
-
definitionobjectrequired -
The parsed template definition.
-
definitionStringstring · max: 30000required -
The raw YAML definition string.
-
deletedAtstringrequired nullable -
The date the template was soft-deleted, or null if active.
-
descriptionstring · max: 30000 -
A human-readable description of the template.
-
fieldCountinteger -
The number of fields defined in the template.
-
fieldDefinitionsobject -
Metadata about each field defined in the template.
-
isDefaultboolean -
Whether this is the default template for its owner.
-
isEnabledboolean -
Whether the template is enabled.
-
isLatestbooleanrequired -
Whether this is the latest version of the template.
-
lastUsedAtstring -
The date the template was last used to create a case.
-
latestVersionintegerrequired -
The latest version number of this template.
-
namestring · max: 100required -
The display name of the template.
-
ownerstring · max: 50required -
The owning solution (e.g. cases, observability, securitySolution).
-
The words and phrases that help categorize templates. It can be an empty array.
-
templateIdstring · max: 36required -
The unique identifier of the template, shared across all versions.
-
templateVersionintegerrequired -
The version number of this template revision.
-
usageCountinteger -
The number of times this template has been used to create a case.
Authorization information is missing or invalid.
-
errorstring -
messagestring -
statusCodeinteger
The template was not found.
-
errorstring -
messagestring -
statusCodeinteger