Spaces method and path for this operation:
get /s/{space_id}/api/cases/templates/{template_id}
Refer to Spaces for more information.
Returns the details of a case template. Requires the Cases feature to be enabled in the space.
GET
/api/cases/templates/{template_id}
curl \
--request GET 'https://localhost:5601/api/cases/templates/9da1ea2a-09f8-4d0e-bf9d-09bf8c9d0f42' \
--header "Authorization: $API_KEY"
Response examples (200)
{
"definition": {},
"definitionString": "fields: []",
"deletedAt": null,
"isLatest": true,
"latestVersion": 1,
"name": "My Template",
"owner": "cases",
"templateId": "9da1ea2a-09f8-4d0e-bf9d-09bf8c9d0f42",
"templateVersion": 1
}
Response examples (401)
{
"error": "Unauthorized",
"message": "Unable to authenticate with the provided credentials.",
"statusCode": 401
}
Response examples (404)
{
"error": "Not Found",
"message": "Saved object [cases-template/9da1ea2a-09f8-4d0e-bf9d-09bf8c9d0f42] not found",
"statusCode": 404
}