Headless LMS

Create an automation

POST
/api/automations

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/automations" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "trigger": "string",    "actions": [      {        "type": "string",        "input": {          "property1": null,          "property2": null        }      }    ]  }'
{  "id": "string",  "name": "string",  "description": "string",  "trigger": "string",  "actions": [    {      "type": "string",      "input": {        "property1": null,        "property2": null      }    }  ],  "enabled": true}