On-Call API › Incidents
Edit a timeline entry
PATCH/api/v1/incidents/{id}/timeline/{entryID}
Replaces an entry's message. When the entry was posted to a status page, the edit is relayed there.
Permission (API-key scope): oncall:incident:write.
Authorization
bearerAuth(oncall:incident:write)apiKeyHeader(oncall:incident:write)
Parameters
Path parameters
idstring requiredThe incident's id.entryIDstring requiredThe timeline entry's id.
Request body required
messagestring required
Responses
200
The entry after the change.
dataIncidentTimelineEntry requiredShow IncidentTimelineEntry properties
idstringincident_idstringauthor_idstringstatusstringThe incident's status when the entry was written.messagestringcreated_atstring (date-time)
successboolean required
400
The body is not JSON (INVALID_BODY) or message is empty (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.
404
No such entry on this incident (NOT_FOUND).
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 PATCH 'https://evohub.io/api/v1/incidents/2e7f9a1b-3c4d-4e5f-8a9b-0c1d2e3f4a5b/timeline/f0e1d2c3-b4a5-4968-8776-655443322110' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"message": "Rolled back payments-api to v2.14.3; error rate is falling."
}'