Merge incidents
merge_incidentsMerge up to five named incidents into a target incident at one level, rejecting merges that would create deeper nesting.
Instructions
Merge the incidents named in the request body into the incident in the path. Merging is one level deep - merging an incident that already has a parent, or naming one that has incidents merged into it, is rejected rather than nesting further.
agentSessionId is optional, and only Orchestra agent sessions should set it. When set, the merge is attributed to Orchestra AI and linked to that session, and the session may only merge the incident it was started for, into an older incident.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| incidentIds | Yes | ||
| incident_id | Yes | Incident ID to merge the named incidents into. | |
| agentSessionId | No | Optional, and only for Orchestra agent sessions, which read it from the ORCHESTRA_AGENT_SESSION_ID environment variable. When set, the merge is attributed to Orchestra AI and linked to that session, which may then only merge the incident it was started for, into an older incident. | |
| X-Orchestra-Account-Id | No | Act on this account rather than the one the credential resolves to. Omit it to use the credential's own account. An API key is issued to a single account, so it may only name that account; an OAuth token may name any account its grant covers. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||