On-Call API › Message templates
Save a status-update template
PUT/api/v1/update-templates
Sets the default text for one kind and status. An empty body is stored as empty.
Permission (API-key scope): oncall:settings:write.
Authorization
bearerAuth(oncall:settings:write)apiKeyHeader(oncall:settings:write)
Request body required
kindstring requiredstatusstring requiredForincident: investigating, identified, monitoring, resolved. Formaintenance: scheduled, in_progress, completed.bodystring
Responses
200
The template.
dataUpdateTemplate requiredShow UpdateTemplate properties
idstringorg_idstringkindstringstatusstringbodystringupdated_atstring (date-time)
successboolean required
400
The body is not JSON (INVALID_BODY), or the kind and status do not go together (VALIDATION_FAILED).
errorobject requiredcodestring requiredmessagestring requireddetailsarray of object requiredfieldstringmessagestring
401
No API key was sent, or it is unknown, revoked or expired (UNAUTHORIZED).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
403
The key lacks the scope this endpoint needs (FORBIDDEN).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
429
Too many requests (RATE_LIMITED). Wait Retry-After seconds.
Retry-AfterintegerSeconds to wait.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
500
Something went wrong on EvoHub's side (INTERNAL_ERROR). Retry later.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
Example request
curl -X PUT 'https://evohub.io/api/v1/update-templates' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"body": "We are investigating reports of degraded service.",
"kind": "incident",
"status": "investigating"
}'