Workflow Version
The workflow version resource.
Basehttps://rest.carbon.ms/workflowVersion
GET
/workflowVersionList workflow versions
Retrieve a paginated list of workflow versions. 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/workflowVersion
curl --request GET \
--url 'https://rest.carbon.ms/workflowVersion?select=*&limit=10' \
--header 'Authorization: Bearer <api-key>'Response
[
{
"id": "abc123def456",
"companyId": "xyz789",
"workflowId": "xyz789",
"versionNumber": 0,
"formatVersion": 0,
"nodes": "string",
"edges": "string",
"createdBy": "string"
}
]GET
/workflowVersionRetrieve a workflow version
Fetch a single workflow version by filtering on `id`.
Query parameters
idstringMatch on the workflow version's `id`, e.g. `eq.{id}`.
GEThttps://rest.carbon.ms/workflowVersion
curl --request GET \
--url 'https://rest.carbon.ms/workflowVersion?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'Response
{
"id": "abc123def456",
"companyId": "xyz789",
"workflowId": "xyz789",
"versionNumber": 0,
"formatVersion": 0,
"nodes": "string",
"edges": "string",
"createdBy": "string"
}POST
/workflowVersionCreate a workflow version
Create a new workflow version.
Body parameters
workflowIdstringrequiredversionNumbernumberrequiredformatVersionnumberrequirednodesobjectrequirededgesobjectrequiredPOSThttps://rest.carbon.ms/workflowVersion
curl --request POST \
--url https://rest.carbon.ms/workflowVersion \
--header 'Authorization: Bearer <api-key>' \
--header 'Content-Type: application/json' \
--header 'Prefer: return=representation' \
--data '{"workflowId":"xyz789","versionNumber":0,"formatVersion":0,"nodes":"string","edges":"string"}'Response
{
"id": "abc123def456",
"companyId": "xyz789",
"workflowId": "xyz789",
"versionNumber": 0,
"formatVersion": 0,
"nodes": "string",
"edges": "string",
"createdBy": "string"
}PATCH
/workflowVersionUpdate a workflow version
Update an existing workflow version, matched on `id`.
Body parameters
workflowIdstringrequiredversionNumbernumberrequiredformatVersionnumberrequirednodesobjectrequirededgesobjectrequiredPATCHhttps://rest.carbon.ms/workflowVersion
curl --request PATCH \
--url 'https://rest.carbon.ms/workflowVersion?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",
"versionNumber": 0,
"formatVersion": 0,
"nodes": "string",
"edges": "string",
"createdBy": "string"
}DELETE
/workflowVersionDelete a workflow version
Delete a workflow version, matched on `id`. Returns 204 No Content.
Query parameters
idstringThe `id` of the workflow version to delete, e.g. `eq.{id}`.
DELETEhttps://rest.carbon.ms/workflowVersion
curl --request DELETE \
--url 'https://rest.carbon.ms/workflowVersion?id=eq.%7Bid%7D' \
--header 'Authorization: Bearer <api-key>'204 No Content