Replace an incident template.
PUT
/incident_template/{template_id}
const url = 'https://api.siteqwality.com/incident_template/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","title":"example","message":"example","severity":"minor","status":"investigating"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.siteqwality.com/incident_template/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "title": "example", "message": "example", "severity": "minor", "status": "investigating" }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” template_id
required
string format: uuid
Template identifier
Request Body required
Section titled “Request Body required ” Media type application/json
A template on create, and its full new state on edit.
Responses
Section titled “ Responses ”Template updated
Media type application/json
Reusable incident wording. Picking one in the app fills the title, message and severity.
object
id
required
string format: uuid
name
required
Unique per account, ignoring case.
string
title
required
string
message
required
string
status
created_at
required
string format: date-time
updated_at
required
string format: date-time
Example
{ "severity": "minor", "status": "investigating"}A blank or too long field, or a resolved status
Missing or invalid authentication
Template not found
The name is taken
Internal server error