Skip to main content
POST
/
workflows
Create a new workflow
curl --request POST \
  --url https://worker.anon.com/api/v2/workflows \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "stepsJson": {
    "name": "<string>",
    "steps": [],
    "version": "0.0.1",
    "description": "<string>",
    "input_schema": [],
    "workflow_analysis": "<string>",
    "metadata": {}
  },
  "sourceProvider": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "sourceProvider": "<string>",
  "type": "LOGIN",
  "createdByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "updatedByUserId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "stepsJson": {
    "name": "<string>",
    "steps": [],
    "version": "0.0.1",
    "description": "<string>",
    "input_schema": [],
    "workflow_analysis": "<string>",
    "metadata": {}
  }
}

Body

application/json
name
string
required
Minimum string length: 1
stepsJson
object
required
sourceProvider
string
required
Minimum string length: 1

Response

Successfully created workflow

id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$
name
string
required
createdAt
string<date-time> | null
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
updatedAt
string<date-time> | null
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
organizationId
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$
sourceProvider
string
required
type
enum<string>
required
Available options:
LOGIN,
USER_DEFINED
createdByUserId
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$
updatedByUserId
string<uuid> | null
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$
stepsJson
object
required