Run Workflow
post
https://api.flxpoint.com/workflow/runUse this when you want to create workflow data through the API.
๐ X-API-TOKENโฑ 2 req/sToken: Account ยท Source ยท Channel
This page explains the endpoint. To send a live test request, use the interactive tester in Stoplight or your own Postman / HTTP client.
Run a workflow for a specific system event
Request
Body
application/jsonKey/value pairs that correspond to global object handles and their values
idintegerOnly required if you are managing the ID externally. Otherwise the workflow can be resovled using the `eventHandle` + `params`.
eventHandlestringThe handle of the event.
draftbooleanRun against the draft version
default
falseparamsarray[GetWorkflowRequestParam][Optional] A set of key/value pairs that are used to uniquely identify a workflow.
keystringrequiredvalueintegerrequiredobjectsobjectrequiredA Map of object handles to their values. Modifications will be applied directly to these and returned in the response.
No properties documented.
Example request
post
/workflow/runcurl -X POST "https://api.flxpoint.com/workflow/run" \
-H "Accept: application/json" \
-H "X-API-TOKEN: YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": 0,
"eventHandle": "string",
"draft": true,
"params": [
{
"key": "string",
"value": 0
}
],
"objects": {}
}'Example body ยท application/json
{
"id": 0,
"eventHandle": "string",
"draft": true,
"params": [
{
"key": "string",
"value": 0
}
],
"objects": {}
}Responses
200Returns same shape as the request but with values passed in the objects field potentially updated by the workflow.application/json
idintegerOnly required if you are managing the ID externally. Otherwise the workflow can be resovled using the `eventHandle` + `params`.
eventHandlestringThe handle of the event.
draftbooleanRun against the draft version
default
falseparamsarray[GetWorkflowRequestParam][Optional] A set of key/value pairs that are used to uniquely identify a workflow.
keystringrequiredvalueintegerrequiredobjectsobjectrequiredA Map of object handles to their values. Modifications will be applied directly to these and returned in the response.
No properties documented.
Example response
{
"id": 0,
"eventHandle": "string",
"draft": true,
"params": [
{
"key": "string",
"value": 0
}
],
"objects": {}
}400If you pass a `workflowId` and it cannot be found.
Or if you pass a `event` and that even doesn't exist. If no workflow is associated to the event no error will occur.
No schema documented for this status.
OpenAPI fragment
{
"post": {
"summary": "Run Workflow",
"description": "Run a workflow for a specific system event",
"parameters": [],
"requestBody": {
"description": "Key/value pairs that correspond to global object handles and their values",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RunWorkflowRequest"
}
}
}
},
"responses": {
"200": {
"description": "Returns same shape as the request but with values passed in the objects field potentially updated by the workflow.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/RunWorkflowRequest"
}
}
}
},
"400": {
"description": "If you pass a `workflowId` and it cannot be found.\n\nOr if you pass a `event` and that even doesn't exist. If no workflow is associated to the event no error will occur."
}
}
}
}Ready to run it? Send the curl from your terminal or Postman, or use the interactive tester in Stoplight.Open in Stoplight