Workflow Run
The workflow run resource.
Basehttps://rest.carbon.ms/workflowRun
GET
/workflowRunList workflow runs
Retrieve a paginated list of workflow runs. Filter, order, and select columns with PostgREST query parameters.
Query parameters
selectstringComma-separated columns to return. Defaults to all.
orderstringColumn to sort by, e.g. `createdAt.desc`.
limitintegerMaximum rows to return.
offsetintegerRows to skip, for pagination.
GEThttps://rest.carbon.ms/workflowRun
curl --request GET \
--url 'https://rest.carbon.ms/workflowRun?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'Response
[
{
"id": "abc123def456",
"companyId": "xyz789",
"workflowId": "xyz789",
"workflowVersionId": "xyz789",
"eventId": "xyz789",
"sourceEventId": "xyz789",
"ownerId": "xyz789",
"status": "string"
}
]GET
/workflowRunRetrieve a workflow run
Fetch a single workflow run by filtering on `id`.
Query parameters
idstringMatch on the workflow run's `id`, e.g. `eq.{id}`.
GEThttps://rest.carbon.ms/workflowRun
curl --request GET \
--url 'https://rest.carbon.ms/workflowRun?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'Response
{
"id": "abc123def456",
"companyId": "xyz789",
"workflowId": "xyz789",
"workflowVersionId": "xyz789",
"eventId": "xyz789",
"sourceEventId": "xyz789",
"ownerId": "xyz789",
"status": "string"
}POST
/workflowRunCreate a workflow run
Create a new workflow run.
Body parameters
workflowIdstringrequiredworkflowVersionIdstringrequiredeventIdstringrequiredsourceEventIdstringrequiredtriggerTablestringtriggerRecordIdstringownerIdstringrequiredReferences user.id
statusstringrequiredstatusReasonstringisTestbooleanrequiredrootRunIdstringcausedByRunIdstringdepthnumberrequiredpatharrayrequiredstartedAttimestampcompletedAttimestampdurationMsnumbererrorstringcompactedAttimestampPOSThttps://rest.carbon.ms/workflowRun
curl --request POST \
--url https://rest.carbon.ms/workflowRun \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"workflowId":"xyz789","workflowVersionId":"xyz789","eventId":"xyz789","sourceEventId":"xyz789","ownerId":"xyz789","status":"string","isTest":true,"depth":0,"path":[]}'Response
{
"id": "abc123def456",
"companyId": "xyz789",
"workflowId": "xyz789",
"workflowVersionId": "xyz789",
"eventId": "xyz789",
"sourceEventId": "xyz789",
"ownerId": "xyz789",
"status": "string"
}PATCH
/workflowRunUpdate a workflow run
Update an existing workflow run, matched on `id`.
Body parameters
workflowIdstringrequiredworkflowVersionIdstringrequiredeventIdstringrequiredsourceEventIdstringrequiredtriggerTablestringtriggerRecordIdstringownerIdstringrequiredReferences user.id
statusstringrequiredstatusReasonstringisTestbooleanrequiredrootRunIdstringcausedByRunIdstringdepthnumberrequiredpatharrayrequiredstartedAttimestampcompletedAttimestampdurationMsnumbererrorstringcompactedAttimestampPATCHhttps://rest.carbon.ms/workflowRun
curl --request PATCH \
--url 'https://rest.carbon.ms/workflowRun?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"workflowId":"xyz789"}'Response
{
"id": "abc123def456",
"companyId": "xyz789",
"workflowId": "xyz789",
"workflowVersionId": "xyz789",
"eventId": "xyz789",
"sourceEventId": "xyz789",
"ownerId": "xyz789",
"status": "string"
}DELETE
/workflowRunDelete a workflow run
Delete a workflow run, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the workflow run to delete, e.g. `eq.{id}`.
DELETEhttps://rest.carbon.ms/workflowRun
curl --request DELETE \
--url 'https://rest.carbon.ms/workflowRun?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'204 No Content