Skip to navigation

Retrieve a site action

View as MarkdownOpen in Claude

Returns one site action with its details. Add include=items to see each step it goes through, and fields[site-actions] for the details a listing leaves out.

Only include and fields apply: filter, sort and page are ignored.

Authentication

AuthorizationBearer

Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.

Path parameters

siteActionstringRequired

Query parameters

includestringOptional

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).

fields[site-actions]stringOptional

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.

Response

200 - Site action

dataobjectOptional
jsonapiobjectOptional