Update a case template
Spaces method and path for this operation:
<div><span class="operation-verb put">put</span> <span class="operation-path">/s/{space_id}/api/cases/templates/{template_id}</span></div>Refer to Spaces for more information.
Fully replaces a case template. Every accepted update creates a new template version; previous versions stay retrievable with the version query parameter of the get template API, and cases keep the version they were created with. 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 without writing. Requires the Cases feature to be enabled in the space.
Path parameters
The identifier for the template.
Query parameters
When true, validates the request without updating 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 new template version, or {"valid": true} for a dry run.
Changes
Changed in 1 of the 97 revisions of this API.1
- ○
endpoint added
endpoint-added
- ○