Create Workflow
curl --request POST \
--url https://api.sixtyfour.ai/workflows/create_workflow \
--header 'Content-Type: application/json' \
--data '
{
"workflow_name": "<string>",
"workflow_description": "<string>",
"workflow_definition": {
"blocks": [
{
"sequence_number": 123,
"block_type": "<string>",
"block_name": "<string>",
"specs": {},
"block_id": "<string>"
}
],
"edges": [
{
"from_block_id": "<string>",
"to_block_id": "<string>",
"condition": "<string>"
}
]
},
"id": "<string>"
}
'{
"id": "<string>",
"name": "<string>",
"status": "<string>",
"step": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"user_uuid": "<string>",
"org_id": "<string>",
"description": "<string>",
"last_run_date": "2023-11-07T05:31:56Z",
"workflow_definition": {
"blocks": [
{
"sequence_number": 123,
"block_type": "<string>",
"block_name": "<string>",
"specs": {},
"block_id": "<string>"
}
],
"edges": [
{
"from_block_id": "<string>",
"to_block_id": "<string>",
"condition": "<string>"
}
]
}
}Workflows
Create Workflow
Create a new workflow from a block graph definition.
POST
/
workflows
/
create_workflow
Create Workflow
curl --request POST \
--url https://api.sixtyfour.ai/workflows/create_workflow \
--header 'Content-Type: application/json' \
--data '
{
"workflow_name": "<string>",
"workflow_description": "<string>",
"workflow_definition": {
"blocks": [
{
"sequence_number": 123,
"block_type": "<string>",
"block_name": "<string>",
"specs": {},
"block_id": "<string>"
}
],
"edges": [
{
"from_block_id": "<string>",
"to_block_id": "<string>",
"condition": "<string>"
}
]
},
"id": "<string>"
}
'{
"id": "<string>",
"name": "<string>",
"status": "<string>",
"step": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"user_uuid": "<string>",
"org_id": "<string>",
"description": "<string>",
"last_run_date": "2023-11-07T05:31:56Z",
"workflow_definition": {
"blocks": [
{
"sequence_number": 123,
"block_type": "<string>",
"block_name": "<string>",
"specs": {},
"block_id": "<string>"
}
],
"edges": [
{
"from_block_id": "<string>",
"to_block_id": "<string>",
"condition": "<string>"
}
]
}
}Headers
Body
application/json
Human-readable workflow name.
Human-readable workflow description.
Workflow definition as a graph of blocks and edges.
Show child attributes
Show child attributes
Optional pre-generated workflow ID supplied by the client.
Response
Successful Response
Workflow identifier.
Workflow name.
Lifecycle status of the workflow definition (e.g. draft, ready).
Current authoring step in the builder UI.
Timestamp when the record was created.
Timestamp when the record was last updated.
User who created the workflow.
Organization that owns the workflow.
Workflow description.
Timestamp of the most recent run.
Workflow graph; included on detail responses.
Show child attributes
Show child attributes
Was this page helpful?
⌘I