Skip to content

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

GET/api/v1/conflicts/detect

Run conflict detection for a hypothetical event without creating it. Useful for pre-flight checks.

Headers

  • x-organization-idUUIDrequired

    Organization scope

Query parameters

  • primaryEntityIdUUIDrequired

    Primary entity for the proposed event

  • eventTypestringrequired

    Event type to validate against

  • startTimedatetimerequired

    Proposed start (ISO 8601)

  • endTimedatetimerequired

    Proposed end (ISO 8601)

  • excludeEventIdstring

    Event 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 parameters

List conflicts

GET/api/v1/conflicts

Paginated list of conflicts with filters. Use status=open to surface a triage queue.

Headers

  • x-organization-idUUIDrequired

    Organization scope

Query parameters

  • statusenum

    open, acknowledged, or resolved

  • eventIdstring

    Conflicts involving a specific event

  • entityIdUUID

    Conflicts involving a specific entity

  • conflictTypestring

    Filter by conflict type

  • severityenum

    hard or soft

  • limitinteger

    Default 20, max 100

  • offsetinteger

    Default 0

Responses

200Paginated conflict list

Get conflict

GET/api/v1/conflicts/{conflictId}

Retrieve a single conflict with full detail.

Headers

  • x-organization-idUUIDrequired

    Organization scope

Path parameters

  • conflictIdstringrequired

    Conflict 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 found

Get resolution suggestions

GET/api/v1/conflicts/{conflictId}/suggestions

Get ranked resolution suggestions for a conflict. The engine scores each suggestion by feasibility and impact.

Headers

  • x-organization-idUUIDrequired

    Organization scope

Path parameters

  • conflictIdstringrequired

    Conflict to resolve

Query parameters

  • maxSuggestionsinteger

    Max 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 found

Acknowledge

POST/api/v1/conflicts/{conflictId}/acknowledge

Accept that a conflict exists without resolving it. Useful for triage workflows where someone has reviewed but won’t act yet.

Headers

  • x-organization-idUUIDrequired

    Organization scope

Path parameters

  • conflictIdstringrequired

    Conflict to acknowledge

Responses

200Conflict acknowledged
404Conflict not found

Resolve

POST/api/v1/conflicts/{conflictId}/resolve

Apply a resolution and close the conflict. Resolution types include reschedule, reassign_resource, cancel, and override.

Headers

  • x-organization-idUUIDrequired

    Organization scope

  • x-user-idstringrequired

    Acting user for audit attribution

Path parameters

  • conflictIdstringrequired

    Conflict 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 resolved
400Invalid resolution type or missing required fields
404Conflict not found

Acknowledge vs. resolve

Acknowledge says “we know about this”. Resolve says “we did something about this”. Use acknowledge when a human needs to triage but action will happen later (different team, different shift). Use resolve when the action is being applied now.