v1
latestOpenAPI 3.0.02026-08-04181876.9 KBautomations
Update an automation
Updates the full definition of an automation. The requesting user must be the owner of the automation and either be assigned the AutomationCreator role or have at least one of the following scopes: automations, admin.automations, automations.private or automations.shared.
put/api/v1/automations/{id}
Path parameters
idstring required
Example:00000000-0000-0000-0000-000000000000
The unique identifier for the automation.
Request body
Example request
{
"schedules": [
{
"stopAt": "2022-12-01 00:00:00",
"startAt": "2022-01-01 00:00:00",
"interval": 60,
"timezone": "Europe/Stockholm"
}
],
"maxConcurrentRuns": 10
}Response
OK Response
Example response
{
"id": "e0e720d0-4947-11ec-a1d2-9559fa35801d",
"state": "available",
"lastRun": {
"id": "d452d100-9b0b-11ec-b199-8323e1031c3e",
"metrics": {
"blocks": [
{
"type": "endpointBlock",
"rxBytes": 18329921,
"txBytes": 18329921,
"apiCalls": 40
}
]
},
"stopTime": "2021-12-23T12:28:21.000000Z",
"createdAt": "2021-12-23T12:28:21.000000Z",
"startTime": "2021-12-23T12:28:21.000000Z",
"updatedAt": "2021-12-23T12:28:21.000000Z",
"scheduledStartTime": "2021-12-23T12:28:21.000000Z"
},
"ownerId": "sWYAHxZxhtcmBT7Ptc5xJ5I6N7HxwnEy",
"runMode": "triggered",
"spaceId": "5f0f78b239ff4f0001234567",
"createdAt": "2021-12-23T12:28:21.000000Z",
"lastRunAt": "2021-12-23T12:28:21.000000Z",
"schedules": [
{
"id": "d452d100-9b0b-11ec-b199-8323e1031c3e",
"stopAt": "2022-12-01 00:00:00",
"startAt": "2021-12-01 00:00:00",
"interval": 60,
"timezone": "Europe/Stockholm",
"lastStartedAt": "2022-01-01T12:28:21.000000Z"
}
],
"updatedAt": "2021-12-23T12:28:21.000000Z",
"snippetIds": [
"e0e720d0-4947-11ec-a1d2-9559fa35801d"
],
"endpointIds": [
"9d94bef0-b28c-11eb-8dba-01593c457362",
"53a6fb70-b28f-11eb-b601-b545a40867e0"
],
"connectorIds": [
"0d87808f-27c0-11ea-921c-022e6b5ea1e2",
"0d86ee8a-27c0-11ea-921c-022e6b5ea1e2"
],
"lastRunStatus": "finished",
"executionToken": "aZXuEogT9X3le0k0WXMBnzuYKq4xRlkDnurjs8NVhEAAW1BYx8C1PpIl3ielgRb1",
"maxConcurrentRuns": 10
}