PATCH /api/incidents/
Updates specific fields of an incident. Only the fields provided in the request body will be updated.Authentication
Requires user authentication via cookies or headers. Theuser_id is extracted from the request.
Path Parameters
UUID of the incident to update
Request Body
All fields are optional. Only include the fields you want to update.Update the incident status. Must be one of:
investigating, analyzed, merged, resolvedWhen set to resolved, automatically triggers postmortem generation.Update Aurora’s RCA analysis status. Must be one of:
idle, running, complete, errorUpdate the incident summary. Maximum length: 10,000 characters
Update the active tab in the UI. Must be one of:
thoughts, chatResponse
Returns a success object with the incident ID.Whether the update was successful
UUID of the updated incident
Example Requests
Update Status to Resolved
cURL
Update Aurora Status and Summary
cURL
Update Active Tab
cURL
Example Response
Response Codes
Successfully updated incident
- Missing user_id (authentication failed)
- Invalid incident ID format (not a valid UUID)
- Missing request body
- Invalid field value (e.g., invalid status)
- Summary too long (max 10,000 characters)
- No valid fields to update
Incident not found or does not belong to the authenticated user
Failed to update incident
Automatic Behaviors
Status Transitions
When status is set toanalyzed:
- The
analyzed_attimestamp is automatically set to the current time (if not already set)
resolved (and previous status was not resolved):
- The
analyzed_attimestamp is set if not already set - A background task is automatically triggered to generate a postmortem document
- The postmortem can be retrieved via the postmortems API
Updated Timestamp
- The
updated_attimestamp is automatically updated on every PATCH request
Validation Rules
status
Must be one of:
investigating, analyzed, merged, resolvedauroraStatus
Must be one of:
idle, running, complete, erroractiveTab
Must be one of:
thoughts, chatsummary
Maximum length: 10,000 characters
Notes
- This is a PATCH endpoint, not PUT - only provided fields are updated
- The endpoint uses Row Level Security (RLS) to ensure users can only update their own incidents
- Setting status to
resolvedtriggers postmortem generation asynchronously - You cannot manually set
analyzed_at- it’s automatically managed based on status - The
updated_atfield is always updated, even if only metadata changes
Related Endpoints
- Get Incident - Retrieve full incident details
- List Incidents - List all incidents