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
| Name | In | Type | Description |
|---|---|---|---|
Idempotency-Key required | header | string | Send 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
| Status | Body | Description |
|---|---|---|
202 | JobGroup | Accepted. The body is the Job object. Follow GET /jobs/{id}/events or poll GET /jobs/{id}. |
400 | Problem | The request could not be read: bad JSON, a bad header, or a malformed value. |
401 | Problem | The credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme. |
403 | Problem | The credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing. |
409 | Problem | The current state does not allow this: the same change is already running, or another change got there first. |
422 | Problem | The request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field. |
429 | Problem | A rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address. |
4XX | Problem | Problem Details (RFC 9457) |
202 response fields
| Name | Type | Description |
|---|---|---|
id required | string (uuid) | UUIDv7 |
action required | string | |
status required | string | One of: running, succeeded, partial, failed, cancelled. |
total required | integer | Range: 0 to any. |
succeeded required | integer | Range: 0 to any. |
failed required | integer | Range: 0 to any. |
progress required | integer | Range: 0 to 100. |
requested_by required | object | |
requested_by.type required | string | One of: user, api_key, mcp_agent, system. |
requested_by.id required | string or null | |
requested_by.label required | string or null | |
requested_by.client_name | string or null | MCP client name and version from the handshake, for mcp_agent requests. |
requested_by.client_version | string or null | |
jobs required | array of object | |
jobs[].job_id required | string (uuid) | UUIDv7 |
jobs[].environment_id required | string or null (uuid) | UUIDv7 |
jobs[].site_id required | string or null (uuid) | UUIDv7 |
jobs[].site_name required | string or null | |
jobs[].status required | string | One of: queued, dispatched, running, succeeded, failed, cancelled. |
jobs[].error required | object or null | |
created_at required | string (date-time) | |
finished_at required | string or null (date-time) |