List site actions
Returns the operations launched on your websites, one row per site action, newest first: updates, safe updates, installs, activations, synchronizations, backups, scans and more. Use it to follow the work a bulk request started, by filtering on the ids it returned with filter[id][], or to find what waits for you with filter[status][]=requires_action.
Authentication
Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.
Query parameters
Action types, for example manager.safe_upgrade, manager.upgrade or manager.install. Several values match any of them.
Action states: pending, in_progress, requires_action, done or failed. Several values match any of them.
Who started the action: dashboard, agent, schedule or system. Requests made with the API start actions with origin agent. Several values match any of them.
1 for actions waiting for a future start, 0 for the rest.
Component id: returns the actions that touch that component's installs.
Free-text search on the name, slug or address of the action's website.
Sort order: created_at, updated_at, status or type. Prefix with - for descending. Default -created_at, newest first.
Attributes to return, comma-separated; only those are returned. These computed attributes are left out unless named: requires_action, scheduled_at, managed_items (the items the action updates or changes), clean_cache, is_manual, visual_regression (the visual comparison of a safe update, filled only for safe updates) and target_site (the destination website of a migration; otherwise the action's own website; null when that website was deleted). clean_cache and is_manual come from the action's own options and are null when the action type has none.
Related records to embed, comma-separated: site embeds the website, items embeds each step of the action, with close_reason (null, stale or auto_approved: why Modular DS closed the step on its own).
Response
200 - Site actions
