Skip to content

Transition a record state

Work module

POST/records/{id}/transitionsrecords.transition

Moves a record between the nine record states. Blocked requires `blocker_text`; Deferred requires `replan_reason`; from Scheduled onward every change is a logged replan. Canceled records are retained. Requires `Idempotency-Key`; a replay returns the original response. A rule that refuses the request returns 422 with `refusal` and `reason`.

  • Requires the capability work.record.write.
  • OAuth scopes: work.
  • Send an Idempotency-Key header. A replay with the same key returns the original response.
  • Error statuses: 400, 401, 404, 409, 422, 429. Errors are RFC 9457 problem details.

Path and query parameters

records.transition: Path and query parameters
FieldTypeRequiredDescription
idstring (uuid)YesIdentifier of the record.

Request body: RecordTransitionRequest

records.transition: RecordTransitionRequest
FieldTypeRequiredDescription
expected_state"Proposed" | "Ready" | "Scheduled" | "Active" | "Blocked" | "In Review" | "Complete" | "Deferred" | "Canceled"YesThe state the caller believes the record is in (compare-and-set).
to_stateRecordStateYesRecord state (Section 3.10). Blocked names its blocker, Deferred carries a replan reason, Canceled is retained.Constraints: one of "Proposed", "Ready", "Scheduled", "Active", "Blocked", "In Review", "Complete", "Deferred", "Canceled"
blocker_textstringNoRequired when moving to Blocked.Constraints: length 1 to any
replan_reasonstringNoRequired when moving to Deferred.Constraints: length 1 to any
{
  "expected_state": "Scheduled",
  "to_state": "Scheduled",
  "blocker_text": "Waiting on the rigging plot.",
  "replan_reason": "Moved to the second weekend."
}

Response 200: Record

records.transition: Record
FieldTypeRequiredDescription
idstring (uuid)YesIdentifier of the record.
org_idstring (uuid)YesIdentifier of the owning organization, derived from the parent row and never accepted from the caller.
created_atstring (date-time)YesWhen the row was created.
created_bystring (uuid) | nullYesIdentifier of the person who created the row; null when a seed, platform or system process created it.
updated_atstring (date-time)YesWhen the row was last updated.
updated_bystring (uuid) | nullYesIdentifier of the person who last updated the row; null when a seed, platform or system process updated it.
record_keystringYesDisplay key issued by `next_sequence`.Constraints: pattern ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$
record_kindRecordKindYesRecord kind from `xpms.dim_record_kind` (26 kinds, Section 3.10).Constraints: pattern ^[A-Z0-9][A-Za-z0-9&'/.()-]*( [A-Za-z0-9&'/.()-]+)*$
record_subtypeRecordSubtypeYesKind-scoped record subtype from `xpms.dim_record_subtype`. A subtype of one kind cannot be stored on another.Constraints: pattern ^[A-Z0-9][A-Za-z0-9&'/.()-]*( [A-Za-z0-9&'/.()-]+)*$
record_classRecordClassYesRecord class from `xpms.dim_record_kind`, derived from the kind.Constraints: pattern ^[A-Z0-9][A-Za-z0-9&'/.()-]*( [A-Za-z0-9&'/.()-]+)*$
record_stateRecordStateYesRecord state (Section 3.10). Blocked names its blocker, Deferred carries a replan reason, Canceled is retained.Constraints: one of "Proposed", "Ready", "Scheduled", "Active", "Blocked", "In Review", "Complete", "Deferred", "Canceled"
titlestringYesTitle, validated against the kind's title grammar on write.Constraints: length 1 to 300
scope_node_idstring (uuid)YesIdentifier of the scope node.
phase_codePhaseCodeYesPhase code from `xpms.dim_phase`, ordered by gate ordinal.Constraints: pattern ^[A-Z]{3}$
uridUridAtAnyGrainYesURID at discipline grain (`DDDD.DD`) or category grain (`DDDD.DD.DD`), as GL dimension 2 allows.Constraints: pattern ^[0-9]000(\.[0-9]{2}){1,2}$
xyzXyzYesXYZ schema-family tag (Section 3.6): X Resource, Y Process, Z Timeline.Constraints: pattern ^[XYZ]$
owner_party_idstring (uuid) | nullYesIdentifier of the owning person or organization.
accountable_party_idstring (uuid) | nullYesIdentifier of the accountable person or organization.
starts_atstring (date-time) | nullYesStart of the record window.
ends_atstring (date-time) | nullYesEnd of the record window.
due_atstring (date-time) | nullYesDue instant.
blocker_textstring | nullYesThe named blocker; required when Blocked.Constraints: length 1 to 20000
replan_reasonstring | nullYesReplan reason; required when Deferred.Constraints: length 1 to 20000
external_visibilityarray of ExternalRoleTypeYesExternal role types that may see the record; empty means internal only. Stored as junction rows, presented as a set.
project_idstring (uuid)YesIdentifier of the project the record belongs to, derived from its scope node and never changed.
parent_record_idstring (uuid) | nullYesIdentifier of the summary record this record rolls up to, in the same project.
wbs_codestring | nullYesWork breakdown structure code, dot separated.Constraints: pattern ^[0-9]+(\.[0-9]+)*$; length 1 to 50
descriptionstring | nullYesWhat the record involves, in sentence case.Constraints: length 1 to 4000
sop_idstring (uuid) | nullYesIdentifier of the standard operating procedure that governs the work.
team_codeTeamId | nullYes
assignee_membership_idsarray of string (uuid)YesMemberships assigned to the record (app.record_assignments), oldest first.
progress_pctnumber | nullYesProgress of a task record, as a percentage.Constraints: range 0 to 100
permit_identifierstring | nullYesPermit identifier the authority issued, on a permit record.Constraints: length 1 to 200
inspection_result_enum_idstring (uuid) | nullYesIdentifier of the Inspection Result enumeration row (Standard Library) of an inspection record.
{
  "id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "org_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "created_at": "2026-10-08T14:30:00Z",
  "created_by": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "updated_at": "2026-10-08T14:30:00Z",
  "updated_by": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "record_key": "NWL-24-118",
  "record_kind": "Task",
  "record_subtype": "Design",
  "record_class": "Work",
  "record_state": "Scheduled",
  "title": "Install Main Stage Truss",
  "scope_node_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "phase_code": "SCP",
  "urid": "4000.01",
  "xyz": "X",
  "owner_party_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "accountable_party_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "starts_at": "2026-10-08T14:30:00Z",
  "ends_at": "2026-10-08T14:30:00Z",
  "due_at": "2026-10-08T14:30:00Z",
  "blocker_text": "Waiting on the rigging plot.",
  "replan_reason": "Moved to the second weekend.",
  "external_visibility": [
    "Vendor"
  ],
  "project_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "parent_record_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "wbs_code": "1.2.1",
  "description": "Rig the downstage truss.",
  "sop_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
  "team_code": "4000-T01",
  "assignee_membership_ids": [
    "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f"
  ],
  "progress_pct": 40,
  "permit_identifier": "BP-2027-0611",
  "inspection_result_enum_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f"
}

Code samples

curl -X POST "$XOS_BASE_URL/records/0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f/transitions" \
  -H "Authorization: Bearer $XOS_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"expected_state":"Scheduled","to_state":"Scheduled","blocker_text":"Waiting on the rigging plot.","replan_reason":"Moved to the second weekend."}'
const { data } = await xos.records.transition("0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f", {
    "expected_state": "Scheduled",
    "to_state": "Scheduled",
    "blocker_text": "Waiting on the rigging plot.",
    "replan_reason": "Moved to the second weekend."
  });
response = xos.records.transition("0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f", {"expected_state": "Scheduled", "to_state": "Scheduled", "blocker_text": "Waiting on the rigging plot.", "replan_reason": "Moved to the second weekend."})
xos records transition 0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f --data '{"expected_state":"Scheduled","to_state":"Scheduled","blocker_text":"Waiting on the rigging plot.","replan_reason":"Moved to the second weekend."}'