Save wording for incidents you declare often. An account keeps up to 100 templates.
POST
/incident_template
const url = 'https://api.siteqwality.com/incident_template';const options = { method: 'POST', 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 POST \ --url https://api.siteqwality.com/incident_template \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "title": "example", "message": "example", "severity": "minor", "status": "investigating" }'Authorizations
Section titled “Authorizations ”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 created
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
The name is taken, or the account has 100 templates
Internal server error