POST
/
workflow
Create Workflow
curl --request POST \
  --url https://{api-address}.org.machina.gg/workflow \
  --header 'Content-Type: application/json' \
  --header 'x-api-token: <api-key>' \
  --data '{
  "name": "<string>",
  "title": "<string>",
  "description": "<string>",
  "context-variables": {},
  "inputs": {},
  "outputs": {
    "workflow-status": "$.get('\''event_exists'\'') is not True and '\''skipped'\'' or '\''executed'\''"
  },
  "tasks": [
    {
      "type": "connector",
      "name": "<string>",
      "description": "<string>",
      "condition": "<string>",
      "inputs": {},
      "outputs": {}
    }
  ],
  "status": "active"
}'
{
  "data": {
    "_id": "<string>"
  },
  "status": true
}

Authorizations

x-api-token
string
header
required

API key authentication

Body

application/json

Response

201
application/json

Workflow created successfully

The response is of type object.