Workflow

Trigger Workflow

Trigger an active or inactive workflow with optional entity references and input data. Supports sync and async execution modes.

post/v1/workflows/{id}/trigger

Request

  • Base URL
    https://api.sandbox.usenash.com
  • Auth
    none declared

Path parameters

idstring required

Request body

jobIdstring nullable

Legacy. Use entity_refs instead.

entityRefsobject nullable

Entity type to ID mapping. Supported types: order, job, delivery, task, route.

inputobject nullable

Arbitrary JSON payload accessible in workflow templates via {{ trigger_metadata.<key> }}.

syncboolean

Run the workflow synchronously and return the completed result.

Example request

{
  "entityRefs": {
    "order": "ord_xxx"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.