Automations

Automation on/off history

Every time the automation was turned on or off, oldest first; order=newest gives the latest first. Each entry says who did it (source, author, api_key_id) and, for a side effect, why (reason). Call it to answer who turned the automation off and when. Changes before authorship was recorded are not listed. The last change of the automation itself is edited_at and edited_by of get_automation.

get/v1/sites/{site_id}/automations/{automation_id}/history

Request

  • Base URL
    https://api.getsitecontrol.com
  • Auth
    HTTP bearer

Path parameters

site_idinteger required
automation_idinteger required

Automation id from list_automations

Query parameters

cursorstring

next_cursor of the previous page, sent with the same order; omit for the first

limitinteger

Items per page

fieldsstring

Comma-separated fields to keep in each item, for example id,name; each item then carries only those fields and id. Omit for every field

order'oldest' | 'newest'

Order of a list. oldest: the oldest item first; newest: the newest item first, for the latest items without paging through the history.

Order of the items: oldest first (default) or newest first; asc and desc mean the same

Response

Successful Response

next_cursorstring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.