Skip to navigation
AutomationsCreate an automation

Create an automation

Creates an automation with the configured event and selected actions, respecting the configured targets.

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
namestringRequired
descriptionstringRequired
statusstringRequired
actionable_eventobjectRequired

Set exactly one of custom_event and system_event. A request with neither or both fails with 400 Bad Request.

configured_actionslist of objectsRequired
targeting_propertieslist of objectsOptional

Device targeting for a system event. Defaults to an empty array. A custom event filters devices with its post_filter_properties instead.

Response

idstring
namestring
descriptionstring or null
statusstring
organisationobject
number_of_executionsdouble
last_executionstring or null
created_atstring
modified_atstring or null
actionable_eventobject
configured_actionslist of objects
targeting_propertieslist of objects
created_byobjectOptional

Errors

400
Bad Request Error
403
Forbidden Error
404
Not Found Error