cases
Create a case template
Spaces method and path for this operation:
<div><span class="operation-verb post">post</span> <span class="operation-path">/s/{space_id}/api/cases/templates</span></div>Refer to Spaces for more information.
Creates a case template from a YAML definition. You must have the "Manage templates" sub-privilege for the Cases feature of the owning solution. Set dry_run=true to run the full validation (body, YAML definition, name uniqueness, authorization) without creating anything. Requires the Cases feature to be enabled in the space.
post/api/cases/templates
Query parameters
dry_runboolean
When true, validates the request without creating the template and returns {"valid": true}.
Request body
Example request
{
"definition": "name: Security incident\nseverity: high\ntags: [security]\nfields:\n - name: priority\n label: Priority\n type: keyword\n control: SELECT_BASIC\n metadata:\n options: [low, medium, high]\n default: medium\n - $ref: risk_score\n",
"owner": "cases"
}Response
Indicates a successful call. Returns the created template, or {"valid": true} for a dry run.