API reference
Conflicts
Detect, list, acknowledge, and resolve scheduling conflicts. Conflicts surface as structured objects the engine can suggest resolutions for.
Key points
- Conflicts are structured records — type, severity, affected events and entities, suggested resolutions
- Hard conflicts block bookings; soft conflicts warn but don’t block
- Acknowledge accepts a conflict without resolving it (triage)
- Resolve applies a structured resolution and closes the conflict
About conflicts
A conflict is the engine’s record that two scheduling decisions have collided — a resource double-booked, a daily hour limit exceeded, a capability mismatch. Conflicts are first-class objects with their own lifecycle: open → acknowledged or resolved.
Most conflicts surface synchronously inside booking responses (409 errors). The Conflicts API exists for two cases:
- Async conflicts — conflicts surfaced by replication after-the-fact (an external calendar change made a previously-valid booking conflict)
- Conflict triage workflows — when a dispatcher or coordinator needs a queue of pending conflicts to work through
Detect conflicts
/api/v1/conflicts/detectRun conflict detection for a hypothetical event without creating it. Useful for pre-flight checks.
Headers
x-organization-idUUIDrequiredOrganization scope
Query parameters
primaryEntityIdUUIDrequiredPrimary entity for the proposed event
eventTypestringrequiredEvent type to validate against
startTimedatetimerequiredProposed start (ISO 8601)
endTimedatetimerequiredProposed end (ISO 8601)
excludeEventIdstringEvent ID to exclude from conflict checks (use when re-checking an existing event during edit)
Responses
200Array of detected conflicts. An empty array means no conflicts.[
{
"id": "conf_a8f4c2d1-...",
"conflictType": "resource_double_booking",
"severity": "hard",
"status": "open",
"eventIds": ["evt_b29f...", "evt_c33a..."],
"entityIds": ["ent_pt_9001"],
"details": {
"resourceId": "res_van_2",
"overlapMinutes": 30
},
"detectedAt": "2026-04-26T15:30:00.000Z",
"resolvedAt": null
}
]400Invalid query parametersList conflicts
/api/v1/conflictsPaginated list of conflicts with filters. Use status=open to surface a triage queue.
Headers
x-organization-idUUIDrequiredOrganization scope
Query parameters
statusenumopen, acknowledged, or resolved
eventIdstringConflicts involving a specific event
entityIdUUIDConflicts involving a specific entity
conflictTypestringFilter by conflict type
severityenumhard or soft
limitintegerDefault 20, max 100
offsetintegerDefault 0
Responses
200Paginated conflict listGet conflict
/api/v1/conflicts/{conflictId}Retrieve a single conflict with full detail.
Headers
x-organization-idUUIDrequiredOrganization scope
Path parameters
conflictIdstringrequiredConflict ID
Responses
200Conflict details{
"id": "conf_a8f4c2d1-...",
"conflictType": "resource_double_booking",
"severity": "hard",
"status": "open",
"eventIds": ["evt_b29f...", "evt_c33a..."],
"entityIds": ["ent_pt_9001"],
"details": {
"resourceId": "res_van_2",
"overlapMinutes": 30
},
"detectedAt": "2026-04-26T15:30:00.000Z",
"resolvedAt": null
}404Conflict not foundGet resolution suggestions
/api/v1/conflicts/{conflictId}/suggestionsGet ranked resolution suggestions for a conflict. The engine scores each suggestion by feasibility and impact.
Headers
x-organization-idUUIDrequiredOrganization scope
Path parameters
conflictIdstringrequiredConflict to resolve
Query parameters
maxSuggestionsintegerMax suggestions to return (default 5, max 20)
Responses
200Ranked resolution suggestions{
"suggestions": [
{
"type": "reschedule",
"score": 0.92,
"proposedEventId": "evt_b29f...",
"newStartTime": "2026-05-08T11:00:00Z",
"newEndTime": "2026-05-08T12:00:00Z"
},
{
"type": "reassign_resource",
"score": 0.78,
"proposedEventId": "evt_b29f...",
"newResourceId": "res_van_5"
}
]
}404Conflict not foundAcknowledge
/api/v1/conflicts/{conflictId}/acknowledgeAccept that a conflict exists without resolving it. Useful for triage workflows where someone has reviewed but won’t act yet.
Headers
x-organization-idUUIDrequiredOrganization scope
Path parameters
conflictIdstringrequiredConflict to acknowledge
Responses
200Conflict acknowledged404Conflict not foundResolve
/api/v1/conflicts/{conflictId}/resolveApply a resolution and close the conflict. Resolution types include reschedule, reassign_resource, cancel, and override.
Headers
x-organization-idUUIDrequiredOrganization scope
x-user-idstringrequiredActing user for audit attribution
Path parameters
conflictIdstringrequiredConflict to resolve
Request body
Specify the resolution type. Optionally reference a specific suggestion ID returned from /suggestions to apply that exact remediation.
{
"resolutionType": "reschedule",
"appliedSuggestionId": "sug_a8f4...",
"notes": "Rescheduled per dispatcher request"
}Responses
200Conflict resolved400Invalid resolution type or missing required fields404Conflict not foundAcknowledge vs. resolve