POST
/
api
/
models
/
{modelId}
/
actions
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>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

modelId
string
required

ID of the model

Body

application/json

Response

201
application/json

Action created successfully

An action in the model that can be executed