Skip to content

Execute runbook

POST
/api/v1/incidents/{incident_id}/runbook
curl --request POST \
--url 'https://api.ultimateteam.ai/api/v1/incidents/example/runbook?tenant_id=example' \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <X-API-Key>' \
--data '{ "manual_confirmation": false }'

Triggers automated runbook execution.

incident_id
required
Incident Id
string
tenant_id
required
Tenant Id

Tenant identifier

string

Tenant identifier

Media typeapplication/json
RunbookTriggerRequest

Request body for runbook execution.

object
manual_confirmation
Manual Confirmation
boolean

Successful Response

Media typeapplication/json
RunbookResult

Result of a runbook execution attempt.

Args: incident_id: The incident this runbook was executed for. runbook_type: The type of runbook executed. success: Whether the execution succeeded. message: Human-readable result message. requires_confirmation: Whether manual confirmation is needed. destructive: Whether this runbook performs destructive actions. executed_at: ISO timestamp of execution. steps_completed: Number of steps completed. outcome: Detailed outcome string from RunbookExecutionRecord. execution_record: Full execution record for audit.

object
destructive
Destructive
boolean
executed_at
Executed At
string
execution_record
Any of:
object
key
additional properties
any
incident_id
Incident Id
string
""
message
Message
string
""
outcome
Outcome
string
""
requires_confirmation
Requires Confirmation
boolean
runbook_type
Runbook Type
string
""
steps_completed
Steps Completed
integer
0
success
Success
boolean
Example
{
"destructive": false,
"incident_id": "",
"message": "",
"outcome": "",
"requires_confirmation": false,
"runbook_type": "",
"steps_completed": 0,
"success": false
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}