Перейти до основного вмісту
GET
/
v1
/
automations
Отримати автоматизації
curl --request GET \
  --url https://api.example.com/v1/automations
[
  {
    "id": 123,
    "dataset": {
      "id": 123,
      "name": "<string>",
      "isDisabled": true,
      "position": 123,
      "path": "<string>",
      "states": [
        {
          "id": 123,
          "dataset": "<unknown>",
          "name": "<string>",
          "color": 123,
          "position": 123
        }
      ],
      "properties": [
        {
          "id": 123,
          "dataset": "<unknown>",
          "propertyType": {
            "id": "<string>",
            "isAutomatic": true,
            "isPlural": true,
            "isSortable": true,
            "position": 123
          },
          "name": "<string>",
          "isUsedAsTitle": true,
          "isRequired": true,
          "parameters": "<string>",
          "position": 123,
          "options": [
            {
              "id": 123,
              "property": "<unknown>",
              "text": "<string>",
              "color": 123
            }
          ]
        }
      ],
      "representations": [
        {
          "id": 123,
          "dashboard": {
            "id": 123,
            "name": "<string>",
            "isDisabled": true,
            "position": 123,
            "path": "<string>",
            "representations": "<array>"
          },
          "dataset": "<unknown>",
          "representationType": {
            "id": "<string>",
            "isAggregated": true,
            "position": 123
          },
          "name": "<string>",
          "parameters": "<string>",
          "position": 123
        }
      ]
    },
    "isDisabled": true,
    "triggers": [
      {
        "id": 123,
        "automation": "<unknown>",
        "dateTimeProperty": {
          "id": 123,
          "dataset": "<unknown>",
          "propertyType": {
            "id": "<string>",
            "isAutomatic": true,
            "isPlural": true,
            "isSortable": true,
            "position": 123
          },
          "name": "<string>",
          "isUsedAsTitle": true,
          "isRequired": true,
          "parameters": "<string>",
          "position": 123,
          "options": [
            {
              "id": 123,
              "property": "<unknown>",
              "text": "<string>",
              "color": 123
            }
          ]
        },
        "delay": 123
      }
    ],
    "conditions": [
      {
        "id": 123,
        "automation": "<unknown>",
        "state": {
          "id": 123,
          "dataset": "<unknown>",
          "name": "<string>",
          "color": 123,
          "position": 123
        }
      }
    ],
    "actions": [
      {
        "id": 123,
        "automation": "<unknown>",
        "actionType": {
          "id": "<string>"
        },
        "parameters": "<string>"
      }
    ]
  }
]

Параметри запиту

sorting
string
offset
integer<int32>
limit
integer<int32>
fields
string

Відповідь

OK

id
integer<int32>
dataset
object
isDisabled
boolean
triggers
object[] | null
conditions
object[] | null
actions
object[] | null