Skip to content

Bulk actions

1 operation in the WP Waterfall API.

Run a bulk action

post/bulkPermalink to Run a bulk action

  • Scope: sites:write
  • Permission: sites.update

Clears caches, changes PHP settings, or applies labels across environments.

Parameters

NameInTypeDescription
Idempotency-Key requiredheaderstringSend a fresh unique value on every POST: a POST without it answers 422. The answer is stored for 24 hours, so a retry with the same key and body returns the first answer, and the same key with a different body returns 422.

Request body application/json, required, BulkRequest

Responses

StatusBodyDescription
202JobGroupAccepted. The body is the Job object. Follow GET /jobs/{id}/events or poll GET /jobs/{id}.
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
409ProblemThe current state does not allow this: the same change is already running, or another change got there first.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

202 response fields

NameTypeDescription
id requiredstring (uuid)UUIDv7
action requiredstring
status requiredstringOne of: running, succeeded, partial, failed, cancelled.
total requiredintegerRange: 0 to any.
succeeded requiredintegerRange: 0 to any.
failed requiredintegerRange: 0 to any.
progress requiredintegerRange: 0 to 100.
requested_by requiredobject
requested_by.type requiredstringOne of: user, api_key, mcp_agent, system.
requested_by.id requiredstring or null
requested_by.label requiredstring or null
requested_by.client_namestring or nullMCP client name and version from the handshake, for mcp_agent requests.
requested_by.client_versionstring or null
jobs requiredarray of object
jobs[].job_id requiredstring (uuid)UUIDv7
jobs[].environment_id requiredstring or null (uuid)UUIDv7
jobs[].site_id requiredstring or null (uuid)UUIDv7
jobs[].site_name requiredstring or null
jobs[].status requiredstringOne of: queued, dispatched, running, succeeded, failed, cancelled.
jobs[].error requiredobject or null
created_at requiredstring (date-time)
finished_at requiredstring or null (date-time)