cURL
curl --request POST \ --url http://localhost:3000/api/models/{modelId}/actions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "type": "<string>", "name": "<string>", "description": "<string>", "metadata": {} }'
{ "label": "<string>", "scriptName": "<string>", "inputIds": [ "<string>" ], "outputIds": [ "<string>" ], "notes": "<string>" }
Creates a new action in the specified model
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the model
Action created successfully
An action in the model that can be executed