Menu
Create Operations
Create Multiple Operations
POST
/operationsUse it in a workflow
- Add a step and choose the Directus connector.
- Pick the Create Operations action (under Operations).
- Fill in the fields below, then reference the result from later steps as
{{createOperations.response.data}}.
Request
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"data": [
{
"id": "2f24211d-d928-469a-aea3-3c8f53d4e426",
"name": "Log to Console",
"key": "log_console",
"type": "log",
"position_x": 12,
"position_y": 12,
"options": null,
"resolve": "63716273-0f29-4648-8a2a-2af2948f6f78",
"reject": "63716273-0f29-4648-8a2a-2af2948f6f78",
"flow": "00000000-0000-0000-0000-000000000000",
"date_created": "2022-05-11T13:14:52Z",
"user_created": "63716273-0f29-4648-8a2a-2af2948f6f78"
}
]
}
Response
Returns 200 with an object. Read it in later steps with {{createOperations.response.data.<field>}}.
{
"data": [
{
"id": "2f24211d-d928-469a-aea3-3c8f53d4e426",
"name": "Log to Console",
"key": "log_console",
"type": "log",
"position_x": 12,
"position_y": 12,
"options": null,
"resolve": "63716273-0f29-4648-8a2a-2af2948f6f78",
"reject": "63716273-0f29-4648-8a2a-2af2948f6f78",
"flow": "00000000-0000-0000-0000-000000000000",
"date_created": "2022-05-11T13:14:52Z",
"user_created": "63716273-0f29-4648-8a2a-2af2948f6f78"
}
],
"meta": {
"total_count": 0,
"filter_count": 0
}
}
Need more? See the Directus guide for connection setup and behaviour shared by every action.
Was this page helpful?