GET
/
api
/
models
/
{modelId}
/
actions
curl --request GET \
  --url http://localhost:3000/api/models/{modelId}/actions \
  --header 'Authorization: Bearer <token>'
[
  {
    "label": "<string>",
    "scriptName": "<string>",
    "inputs": [
      {
        "id": "<string>",
        "name": "<string>",
        "value": "<string>",
        "unitName": "<string>",
        "prefix": "<string>",
        "lastUpdated": 123,
        "constraints": [
          "<string>"
        ],
        "isLeftAligned": true
      }
    ],
    "outputs": [
      {
        "id": "<string>",
        "name": "<string>",
        "value": "<string>",
        "unitName": "<string>",
        "prefix": "<string>",
        "lastUpdated": 123,
        "constraints": [
          "<string>"
        ],
        "isLeftAligned": true
      }
    ]
  }
]

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

Query Parameters

type
string

Filter actions by type

Response

200
application/json
List of actions
label
string
required

The label of the action

scriptName
string
required

The name of the script file

inputs
object[]
required

The inputs of the action

outputs
object[]
required

The outputs of the action