Skip to content
Proud to collaborate with Microsoft for Startups

ticket.external.binding.upsert ​

Upsert the relation between a ticket and an external provider object.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-tickets
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes——
ticket_uuidstringYes——
providerstringYes——
provider_workspace_refstringNo——
provider_item_typestringYes——
provider_item_refstringYes——
provider_item_keystringNo——
provider_urlstringNo——
sync_directionstringNo——
authoritative_sidestringNo——
metadatajsonNo——
created_by_uuidstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
binding_uuidstringNo——
createdbooleanNo——
updated_fieldslistNo——
organization_uuidstringNo—Input field preserved in workflow state.
ticket_uuidstringNo—Input field preserved in workflow state.
providerstringNo—Input field preserved in workflow state.
provider_workspace_refstringNo—Input field preserved in workflow state.
provider_item_typestringNo—Input field preserved in workflow state.
provider_item_refstringNo—Input field preserved in workflow state.
provider_item_keystringNo—Input field preserved in workflow state.
provider_urlstringNo—Input field preserved in workflow state.
sync_directionstringNo—Input field preserved in workflow state.
authoritative_sidestringNo—Input field preserved in workflow state.
metadatajsonNo—Input field preserved in workflow state.
created_by_uuidstringNo—Input field preserved in workflow state.
failed_atstringNo—ISO-8601 timestamp when action_fail recorded the failure
failure_reasonstringNo—Human-readable failure reason from action_fail
failure_typestringNo—Engine-stamped failure category
failed_actionstringNo—Engine-stamped action that raised
failed_at_statestringNo—Engine-stamped state when the workflow failed
failed_stepstringNo—Engine-stamped step name (DAG path)
failed_layerstringNo—Engine-stamped layer index (DAG path)
errorstringNo—Engine-stamped exception message
error_typestringNo—Engine-stamped exception class name

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—executeAccepted
executingNoNo—completeApplying the mutation
completedNoYesYes—Done
failedNoYesNo—Failed

State Diagram ​

Transitions ​

FromActionToDescription
initiatedexecuteexecutingRun the mutation
executingcompletecompletedFinalize
* (any state)failfailedCatch-all failure

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "ticket.external.binding.upsert",
  "initial_data": {
    "organization_uuid": "value",
    "ticket_uuid": "value",
    "provider": "value",
    "provider_item_type": "value"
  }
}