Skip to content

Plugins and themes

29 operations in the WP Waterfall API.

Read the automatic updates and Safe Updates state of an environment

get/environments/{id}/auto-updatesPermalink to Read the automatic updates and Safe Updates state of an environment

  • Scope: sites:read
  • Permission: sites.read

The switches for plugins and themes (all, or single names; the names in disabled are the ones your settings exclude), the Safe Updates add-on (entitled), whether Safe Updates is on here, its schedule (the days of the week and the two hour window, in the chosen time zone), the pages it tests (up to 10, the home page first), the CSS selectors it leaves out, the required match, how a page is prepared before its picture, the deploy to live choice, the updates held back because they broke a check (skipped), the last run (its date, result, what changed, the pictures, the review, the deploy, and the commit in Git mode), and when the next run starts. mode says how an update reaches the environment: git saves it as a Git commit and runs it as a new release, sftp changes the working copy. tier is plain for the free daily run and safe for the weekly Safe Updates run. supported is false on live and while an external repository is connected, with a plain reason. Always answers 200. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.

Responses

StatusBodyDescription
200AutoUpdateStateThe automatic update state
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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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)

200 response fields

NameTypeDescription
environment_id requiredstring (uuid)UUIDv7
mode requiredstringHow an update reaches this environment: git saves a commit, sftp changes the working copy. One of: git, sftp.
supported requiredbooleanFalse on live, and while an external repository is connected.
unsupported_reason requiredstring or nullWhy it is off here, in one sentence. Null when it can run.
enabled requiredbooleanTrue when at least one switch is on and automatic updates can run here.
tier requiredstringsafe while Safe Updates is on and the site holds the add-on, otherwise plain. One of: plain, safe.
cadence requiredstringweekly for Safe Updates, daily otherwise. One of: daily, weekly.
plugins requiredobject
plugins.all requiredboolean
plugins.enabled requiredarray of string
plugins.disabled requiredarray of string
themes requiredobject
themes.all requiredboolean
themes.enabled requiredarray of string
themes.disabled requiredarray of string
safe requiredobject
safe.entitled requiredbooleanTrue when the site holds the Safe Updates add-on.
safe.enabled requiredbooleanTrue when Safe Updates is switched on here and the site holds the add-on.
safe.days requiredarray of integerThe days a run may start on, 0 is Sunday and 6 is Saturday, in timezone.
safe.hour requiredintegerThe window starts at this hour, in timezone, and lasts two hours. Range: 0 to 23.
safe.timezone requiredstring
safe.window_hours requirednumber
safe.pages requiredarray of objectThe pages tested, each with the match it must reach.
safe.exclude_selectors requiredarray of stringElements taken out of the pictures of every page.

Change the Safe Updates and deploy settings of an environment

put/environments/{id}/auto-updatesPermalink to Change the Safe Updates and deploy settings of an environment

  • Scope: sites:write
  • Permission: tools.run

Send only the fields to change. safe_enabled turns Safe Updates on (it needs the add-on, 402 safe_updates_required without it) and, when every switch is off, turns on the switch for every plugin and theme. deploy_to_live ships staging's new code to live after a run passes every check (staging only; code only, never the database or uploads; off by default). timezone, safe_days (the days of the week, 0 is Sunday), and safe_hour set the window, which lasts two hours. pages lists 1 to 10 paths, any of them (the home page too), each with its own required_match (50 to 100, 95 by default: the share of that page that must match its picture from before the update) and CSS selectors of elements to take out of that page. A page below its own required_match makes the run wait for your confirmation. exclude_selectors (up to 20) takes elements out of the pictures of every page. capture sets how a page is prepared before its picture: wait seconds (0 to 15), enable_animations, and flatten_sticky. Every page is scrolled before its picture. Live answers 409 live_is_immutable, and an environment with a connected external repository answers 409 external_repository_connected. Turning a setting off is always allowed. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
Idempotency-KeyheaderstringOptional on PUT and PATCH. When the call starts a job, a retry with the same key, path, and body within 24 hours returns that job instead of starting another. A different path or body starts a new job.

Request body application/json, required, PutAutoUpdateSettingsRequest

Fields

NameTypeDescription
safe_enabledboolean
deploy_to_liveboolean
timezonestring
safe_daysarray of integer
safe_hourintegerRange: 0 to 23.
pagesarray of object
pages[].path requiredstring
pages[].hide_selectorsarray of stringElements taken out of the page (display none) before its picture, on this page only.
pages[].required_matchintegerHow much of this page must match its picture from before the update, in percent. Default: 95. Range: 50 to 100.
exclude_selectorsarray of string
captureobject
capture.wait_secondsintegerSeconds to wait after the page loads and after the scroll. Default: 2. Range: 0 to 15.
capture.enable_animationsbooleanOn: animations and scroll effects play, and the picture waits for running ones to finish. Off: animations are finished at once and frozen, and the browser is asked for reduced motion. Every page is scrolled down and back to the top before its picture, whatever this says. Default: true.
capture.flatten_stickybooleanMake fixed and sticky elements part of the flow for the picture. Default: false.

Responses

StatusBodyDescription
200AutoUpdateStateThe saved state
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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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)

200 response fields

NameTypeDescription
environment_id requiredstring (uuid)UUIDv7
mode requiredstringHow an update reaches this environment: git saves a commit, sftp changes the working copy. One of: git, sftp.
supported requiredbooleanFalse on live, and while an external repository is connected.
unsupported_reason requiredstring or nullWhy it is off here, in one sentence. Null when it can run.
enabled requiredbooleanTrue when at least one switch is on and automatic updates can run here.
tier requiredstringsafe while Safe Updates is on and the site holds the add-on, otherwise plain. One of: plain, safe.
cadence requiredstringweekly for Safe Updates, daily otherwise. One of: daily, weekly.
plugins requiredobject
plugins.all requiredboolean
plugins.enabled requiredarray of string
plugins.disabled requiredarray of string
themes requiredobject
themes.all requiredboolean
themes.enabled requiredarray of string
themes.disabled requiredarray of string
safe requiredobject
safe.entitled requiredbooleanTrue when the site holds the Safe Updates add-on.
safe.enabled requiredbooleanTrue when Safe Updates is switched on here and the site holds the add-on.
safe.days requiredarray of integerThe days a run may start on, 0 is Sunday and 6 is Saturday, in timezone.
safe.hour requiredintegerThe window starts at this hour, in timezone, and lasts two hours. Range: 0 to 23.
safe.timezone requiredstring
safe.window_hours requirednumber
safe.pages requiredarray of objectThe pages tested, each with the match it must reach.
safe.exclude_selectors requiredarray of stringElements taken out of the pictures of every page.

Apply one held back update anyway

post/environments/{id}/auto-updates/applyPermalink to Apply one held back update anyway

  • Scope: sites:write
  • Permission: tools.run

Queues an auto_update_run job for one plugin or theme that a check held back. The health check still runs, and a site that breaks is restored, but the pictures and the review no longer hold the update back. Live answers 409 live_is_immutable, and an environment with a connected external repository answers 409 external_repository_connected. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
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, AutoUpdateApplyRequest

Fields

NameTypeDescription
kind requiredstringOne of: plugin, theme.
slug requiredstring

Responses

StatusBodyDescription
202JobAccepted. The body is the Job object.
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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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
type requiredstringA node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan.
status requiredstringOne of: queued, dispatched, running, succeeded, failed, cancelled.
environment_id requiredstring or null (uuid)UUIDv7
site_id requiredstring or null (uuid)UUIDv7
node_id requiredstring or null (uuid)UUIDv7
group_id requiredstring or null (uuid)UUIDv7
progress requiredintegerRange: 0 to 100.
attempts requiredintegerRange: 0 to any.
error requiredobject or null
error.code requiredstring
error.message requiredstring
error.retryable requiredbooleanDefault: false.
result requiredobject or null
descriptionstring or nullWhat the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers.
site_namestring or nullThe name of the site the job belongs to, when it has one.
environment_namestring or nullThe name of the environment the job runs on, such as live or staging.
quietbooleanTrue for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet.
parent_job_idstring or null (uuid)The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers.
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.

A short-lived link to a picture from the last Safe Updates run

get/environments/{id}/auto-updates/picturePermalink to A short-lived link to a picture from the last Safe Updates run

  • Scope: sites:read
  • Permission: sites.read

Send a key from the last run (before_key, after_key, or diff_key). The key must belong to this environment. The link works for five minutes. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
key requiredquerystringA picture key from the last run, such as visual.diff_key. A picture key from the last run, such as visual.diff_key.

Responses

StatusBodyDescription
200AutoUpdatePictureLinkThe link
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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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)

200 response fields

NameTypeDescription
url requiredstring (uri)
expires_in_seconds requiredinteger

Preview the visual regression test of one page

post/environments/{id}/auto-updates/previewPermalink to Preview the visual regression test of one page

  • Scope: sites:write
  • Permission: tools.run

Takes two pictures of one page of this staging or preview environment a few seconds apart, with the exclusions, the required match, and the capture settings in the body (or the saved ones), and says whether dynamic content was found, how much of the page matches, and a key for the difference picture (read it with the picture route). It changes nothing on the site. A company may run 20 previews an hour (429 after that). Live answers 409 live_is_immutable, and an environment with a connected external repository answers 409 external_repository_connected. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
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, AutoUpdatePreviewRequest

Fields

NameTypeDescription
path requiredstring
exclude_selectorsarray of string
required_matchintegerWhat this page must match. Left out, the saved requirement of the page, or 95. Range: 50 to 100.
captureobject
capture.wait_secondsintegerSeconds to wait after the page loads and after the scroll. Default: 2. Range: 0 to 15.
capture.enable_animationsbooleanOn: animations and scroll effects play, and the picture waits for running ones to finish. Off: animations are finished at once and frozen, and the browser is asked for reduced motion. Every page is scrolled down and back to the top before its picture, whatever this says. Default: true.
capture.flatten_stickybooleanMake fixed and sticky elements part of the flow for the picture. Default: false.

Responses

StatusBodyDescription
200AutoUpdatePreviewThe result of the preview
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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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)

200 response fields

NameTypeDescription
path requiredstring
dynamic_found requiredbooleanTrue when the two pictures differ outside the excluded parts.
match_percent requirednumberRange: 0 to 100.
required_match requiredintegerThe requirement of the page that was tested: its own, or 95. Range: 50 to 100.
diff_key requiredstring or nullThe difference picture, as a key for the picture route. Null when nothing differs or no store.
note requiredstring or nullOne plain sentence when the page could not be tested or the capture was cut short.

Run automatic updates on an environment now

post/environments/{id}/auto-updates/runPermalink to Run automatic updates on an environment now

  • Scope: sites:write
  • Permission: tools.run

Queues an auto_update_run job for the plugins and themes whose switch is on. It takes a restore point, updates one at a time with a site check after each, and on a failed check restores the restore point and leaves the update out. With Safe Updates on it also compares pictures of the pages and asks a model to review the differences. In Git mode it saves the updates as one commit by WP Waterfall Automatic Updates and the normal build and swap run it. Live answers 409 live_is_immutable, and an environment with a connected external repository answers 409 external_repository_connected. With every switch off it answers 409 auto_updates_off. Another change running on the environment answers 409 job_already_running. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
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, AutoUpdateRunNowRequest

Responses

StatusBodyDescription
202JobAccepted. 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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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
type requiredstringA node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan.
status requiredstringOne of: queued, dispatched, running, succeeded, failed, cancelled.
environment_id requiredstring or null (uuid)UUIDv7
site_id requiredstring or null (uuid)UUIDv7
node_id requiredstring or null (uuid)UUIDv7
group_id requiredstring or null (uuid)UUIDv7
progress requiredintegerRange: 0 to 100.
attempts requiredintegerRange: 0 to any.
error requiredobject or null
error.code requiredstring
error.message requiredstring
error.retryable requiredbooleanDefault: false.
result requiredobject or null
descriptionstring or nullWhat the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers.
site_namestring or nullThe name of the site the job belongs to, when it has one.
environment_namestring or nullThe name of the environment the job runs on, such as live or staging.
quietbooleanTrue for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet.
parent_job_idstring or null (uuid)The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers.
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.

List the plugins on the site

get/environments/{id}/pluginsPermalink to List the plugins on the site

  • Scope: sites:read
  • Permission: sites.read

Answers the list from the last list job on the site, kept by WP Waterfall, with refreshed_at. When there is none, or a change made through WP Waterfall finished after it, the list runs again through the WP-CLI runner: the API waits up to 10 seconds and returns 200, or 202 with the Job when it takes longer. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
limitqueryintegerHow many rows to return in one page: at most 200, and 200 when left out. Default: 200. Range: 1 to 200.
cursorquerystringThe next_cursor of the page before. Leave it out for the first page.

Responses

StatusBodyDescription
200ExtensionListThe plugins
202JobAccepted. 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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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)

200 response fields

NameTypeDescription
data requiredarray of Extension
data[].name requiredstringThe WP-CLI name. It is the value the routes take as {slug}.
data[].title requiredstring
data[].version requiredstring
data[].status requiredstringOne of: active, inactive, must-use, dropin, parent.
data[].update_available requiredboolean
data[].update_version requiredstring or null
data[].auto_update requiredboolean or nullWordPress automatic updates for this extension, on staging and previews. Live code is a read-only release, so live has no automatic updates and this is null there.
data[].network_activebooleanWordPress Multisite: the plugin is network activated, which WP-CLI reports as active-network. Every site of the network runs it. Absent or false on a single site.
data[].vulnerablebooleanTrue when the installed version has a known vulnerability. Absent when no vulnerability source is set up or the environment was not matched yet, so an older answer reads as "not known".
data[].vulnerability_countintegerHow many known vulnerabilities this installed version has. Absent with vulnerable. Range: 0 to any.
next_cursor requiredstring or null
refreshed_at requiredstring or null (date-time)

Turn automatic updates on or off for every plugin

put/environments/{id}/plugins/auto-updatePermalink to Turn automatic updates on or off for every plugin

  • Scope: sites:write
  • Permission: tools.run

Staging and previews only, in SFTP mode and Git mode. Saves the switch in WP Waterfall's own record and answers 200 with the switches, because the run itself is a separate job (see POST /environments/{id}/auto-updates/run). Live code is a read-only release, so live has no automatic updates: on live this answers 409 with the code live_is_immutable. While an external repository is connected, turning a switch on answers 409 with the code external_repository_connected. Update on staging, then promote staging to live. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
Idempotency-KeyheaderstringOptional on PUT and PATCH. When the call starts a job, a retry with the same key, path, and body within 24 hours returns that job instead of starting another. A different path or body starts a new job.

Request body application/json, required, AutoUpdateAllRequest

Fields

NameTypeDescription
enabled requiredboolean

Responses

StatusBodyDescription
200AutoUpdateStateThe automatic update switches after the change
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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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)

200 response fields

NameTypeDescription
environment_id requiredstring (uuid)UUIDv7
mode requiredstringHow an update reaches this environment: git saves a commit, sftp changes the working copy. One of: git, sftp.
supported requiredbooleanFalse on live, and while an external repository is connected.
unsupported_reason requiredstring or nullWhy it is off here, in one sentence. Null when it can run.
enabled requiredbooleanTrue when at least one switch is on and automatic updates can run here.
tier requiredstringsafe while Safe Updates is on and the site holds the add-on, otherwise plain. One of: plain, safe.
cadence requiredstringweekly for Safe Updates, daily otherwise. One of: daily, weekly.
plugins requiredobject
plugins.all requiredboolean
plugins.enabled requiredarray of string
plugins.disabled requiredarray of string
themes requiredobject
themes.all requiredboolean
themes.enabled requiredarray of string
themes.disabled requiredarray of string
safe requiredobject
safe.entitled requiredbooleanTrue when the site holds the Safe Updates add-on.
safe.enabled requiredbooleanTrue when Safe Updates is switched on here and the site holds the add-on.
safe.days requiredarray of integerThe days a run may start on, 0 is Sunday and 6 is Saturday, in timezone.
safe.hour requiredintegerThe window starts at this hour, in timezone, and lasts two hours. Range: 0 to 23.
safe.timezone requiredstring
safe.window_hours requirednumber
safe.pages requiredarray of objectThe pages tested, each with the match it must reach.
safe.exclude_selectors requiredarray of stringElements taken out of the pictures of every page.

Change several plugins at once

post/environments/{id}/plugins/bulkPermalink to Change several plugins at once

  • Scope: sites:write
  • Permission: tools.run
  • Needs a confirmation

Runs one WP-CLI command for every name given, as one job. Update and delete need confirm: true. Live sites in Git mode refuse changes to code. enable_auto_update and disable_auto_update save the switches and answer 200 with them, and live answers 409 live_is_immutable to them. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
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.
confirmquerystringAn API key must say yes to this change: confirm=true here, or confirm: true in the JSON body. Without it the call answers 422 and changes nothing. One of: true.

Request body application/json, required, BulkExtensionRequest

Fields

NameTypeDescription
action requiredstringOne of: activate, deactivate, update, delete, enable_auto_update, disable_auto_update.
slugs requiredarray of string
confirmboolean
networkbooleanNetwork wide, for WordPress Multisite. Only with activate and deactivate.

Responses

StatusBodyDescription
200AutoUpdateStateFor enable_auto_update and disable_auto_update only: the switches after the change
202JobAccepted. 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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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)

200 response fields

NameTypeDescription
environment_id requiredstring (uuid)UUIDv7
mode requiredstringHow an update reaches this environment: git saves a commit, sftp changes the working copy. One of: git, sftp.
supported requiredbooleanFalse on live, and while an external repository is connected.
unsupported_reason requiredstring or nullWhy it is off here, in one sentence. Null when it can run.
enabled requiredbooleanTrue when at least one switch is on and automatic updates can run here.
tier requiredstringsafe while Safe Updates is on and the site holds the add-on, otherwise plain. One of: plain, safe.
cadence requiredstringweekly for Safe Updates, daily otherwise. One of: daily, weekly.
plugins requiredobject
plugins.all requiredboolean
plugins.enabled requiredarray of string
plugins.disabled requiredarray of string
themes requiredobject
themes.all requiredboolean
themes.enabled requiredarray of string
themes.disabled requiredarray of string
safe requiredobject
safe.entitled requiredbooleanTrue when the site holds the Safe Updates add-on.
safe.enabled requiredbooleanTrue when Safe Updates is switched on here and the site holds the add-on.
safe.days requiredarray of integerThe days a run may start on, 0 is Sunday and 6 is Saturday, in timezone.
safe.hour requiredintegerThe window starts at this hour, in timezone, and lasts two hours. Range: 0 to 23.
safe.timezone requiredstring
safe.window_hours requirednumber
safe.pages requiredarray of objectThe pages tested, each with the match it must reach.
safe.exclude_selectors requiredarray of stringElements taken out of the pictures of every page.

Read the plugins from the site again

post/environments/{id}/plugins/refreshPermalink to Read the plugins from the site again

  • Scope: sites:read
  • Permission: sites.read

Runs the list again on the node as a job, for example after a push or a change made in WordPress. Read the list again when the job succeeds. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
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.

Responses

StatusBodyDescription
202JobAccepted. 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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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
type requiredstringA node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan.
status requiredstringOne of: queued, dispatched, running, succeeded, failed, cancelled.
environment_id requiredstring or null (uuid)UUIDv7
site_id requiredstring or null (uuid)UUIDv7
node_id requiredstring or null (uuid)UUIDv7
group_id requiredstring or null (uuid)UUIDv7
progress requiredintegerRange: 0 to 100.
attempts requiredintegerRange: 0 to any.
error requiredobject or null
error.code requiredstring
error.message requiredstring
error.retryable requiredbooleanDefault: false.
result requiredobject or null
descriptionstring or nullWhat the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers.
site_namestring or nullThe name of the site the job belongs to, when it has one.
environment_namestring or nullThe name of the environment the job runs on, such as live or staging.
quietbooleanTrue for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet.
parent_job_idstring or null (uuid)The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers.
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.

One plugin

get/environments/{id}/plugins/{slug}Permalink to One plugin

  • Scope: sites:read
  • Permission: sites.read

Reads through the WP-CLI runner. The API waits up to 10 seconds and returns 200 with the result, or 202 with the Job when it takes longer. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
slug requiredpathstringThe plugin's slug: the name WP-CLI lists it under.

Responses

StatusBodyDescription
200PluginDetailThe plugin
202JobAccepted. 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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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)

200 response fields

NameTypeDescription
name requiredstringThe WP-CLI name. It is the value the routes take as {slug}.
title requiredstring
version requiredstring
status requiredstringOne of: active, inactive, must-use, dropin, parent.
update_available requiredboolean
update_version requiredstring or null
auto_update requiredboolean or nullWordPress automatic updates for this extension, on staging and previews. Live code is a read-only release, so live has no automatic updates and this is null there.
network_activebooleanWordPress Multisite: the plugin is network activated, which WP-CLI reports as active-network. Every site of the network runs it. Absent or false on a single site.
vulnerablebooleanTrue when the installed version has a known vulnerability. Absent when no vulnerability source is set up or the environment was not matched yet, so an older answer reads as "not known".
vulnerability_countintegerHow many known vulnerabilities this installed version has. Absent with vulnerable. Range: 0 to any.
description requiredstring or null
author requiredstring or null

Delete a plugin

delete/environments/{id}/plugins/{slug}Permalink to Delete a plugin

  • Scope: sites:write
  • Permission: tools.run
  • Needs a confirmation

Runs a WP-CLI command as a job on the node. Poll the job or follow its events. Live sites in Git mode refuse changes to code. Send confirm=true and confirm_name with the plugin name as query parameters. Deleting a plugin that is still active fails. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
slug requiredpathstringThe plugin's slug: the name WP-CLI lists it under.
confirm requiredquerystringOne of: true.
confirm_name requiredquerystring

Responses

StatusBodyDescription
202JobAccepted. 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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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
type requiredstringA node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan.
status requiredstringOne of: queued, dispatched, running, succeeded, failed, cancelled.
environment_id requiredstring or null (uuid)UUIDv7
site_id requiredstring or null (uuid)UUIDv7
node_id requiredstring or null (uuid)UUIDv7
group_id requiredstring or null (uuid)UUIDv7
progress requiredintegerRange: 0 to 100.
attempts requiredintegerRange: 0 to any.
error requiredobject or null
error.code requiredstring
error.message requiredstring
error.retryable requiredbooleanDefault: false.
result requiredobject or null
descriptionstring or nullWhat the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers.
site_namestring or nullThe name of the site the job belongs to, when it has one.
environment_namestring or nullThe name of the environment the job runs on, such as live or staging.
quietbooleanTrue for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet.
parent_job_idstring or null (uuid)The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers.
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.

Activate a plugin

post/environments/{id}/plugins/{slug}/activatePermalink to Activate a plugin

  • Scope: sites:write
  • Permission: tools.run

Runs a WP-CLI command as a job on the node. Poll the job or follow its events. Live sites in Git mode refuse changes to code. On a WordPress Multisite network, send network: true to activate it for every site. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
slug requiredpathstringThe plugin's slug: the name WP-CLI lists it under.
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, ExtensionActivateRequest

Fields

NameTypeDescription
networkboolean

Responses

StatusBodyDescription
202JobAccepted. 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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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
type requiredstringA node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan.
status requiredstringOne of: queued, dispatched, running, succeeded, failed, cancelled.
environment_id requiredstring or null (uuid)UUIDv7
site_id requiredstring or null (uuid)UUIDv7
node_id requiredstring or null (uuid)UUIDv7
group_id requiredstring or null (uuid)UUIDv7
progress requiredintegerRange: 0 to 100.
attempts requiredintegerRange: 0 to any.
error requiredobject or null
error.code requiredstring
error.message requiredstring
error.retryable requiredbooleanDefault: false.
result requiredobject or null
descriptionstring or nullWhat the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers.
site_namestring or nullThe name of the site the job belongs to, when it has one.
environment_namestring or nullThe name of the environment the job runs on, such as live or staging.
quietbooleanTrue for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet.
parent_job_idstring or null (uuid)The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers.
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.

Turn automatic updates on or off for a plugin

put/environments/{id}/plugins/{slug}/auto-updatePermalink to Turn automatic updates on or off for a plugin

  • Scope: sites:write
  • Permission: tools.run

Staging and previews only, in SFTP mode and Git mode. Saves the switch in WP Waterfall's own record and answers 200 with the switches, because the run itself is a separate job (see POST /environments/{id}/auto-updates/run). Live code is a read-only release, so live has no automatic updates: on live this answers 409 with the code live_is_immutable. While an external repository is connected, turning a switch on answers 409 with the code external_repository_connected. Update on staging, then promote staging to live. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
slug requiredpathstringThe plugin's slug: the name WP-CLI lists it under.
Idempotency-KeyheaderstringOptional on PUT and PATCH. When the call starts a job, a retry with the same key, path, and body within 24 hours returns that job instead of starting another. A different path or body starts a new job.

Request body application/json, required, AutoUpdateRequest

Fields

NameTypeDescription
enabled requiredboolean

Responses

StatusBodyDescription
200AutoUpdateStateThe automatic update switches after the change
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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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)

200 response fields

NameTypeDescription
environment_id requiredstring (uuid)UUIDv7
mode requiredstringHow an update reaches this environment: git saves a commit, sftp changes the working copy. One of: git, sftp.
supported requiredbooleanFalse on live, and while an external repository is connected.
unsupported_reason requiredstring or nullWhy it is off here, in one sentence. Null when it can run.
enabled requiredbooleanTrue when at least one switch is on and automatic updates can run here.
tier requiredstringsafe while Safe Updates is on and the site holds the add-on, otherwise plain. One of: plain, safe.
cadence requiredstringweekly for Safe Updates, daily otherwise. One of: daily, weekly.
plugins requiredobject
plugins.all requiredboolean
plugins.enabled requiredarray of string
plugins.disabled requiredarray of string
themes requiredobject
themes.all requiredboolean
themes.enabled requiredarray of string
themes.disabled requiredarray of string
safe requiredobject
safe.entitled requiredbooleanTrue when the site holds the Safe Updates add-on.
safe.enabled requiredbooleanTrue when Safe Updates is switched on here and the site holds the add-on.
safe.days requiredarray of integerThe days a run may start on, 0 is Sunday and 6 is Saturday, in timezone.
safe.hour requiredintegerThe window starts at this hour, in timezone, and lasts two hours. Range: 0 to 23.
safe.timezone requiredstring
safe.window_hours requirednumber
safe.pages requiredarray of objectThe pages tested, each with the match it must reach.
safe.exclude_selectors requiredarray of stringElements taken out of the pictures of every page.

Deactivate a plugin

post/environments/{id}/plugins/{slug}/deactivatePermalink to Deactivate a plugin

  • Scope: sites:write
  • Permission: tools.run

Runs a WP-CLI command as a job on the node. Poll the job or follow its events. Live sites in Git mode refuse changes to code. Send network: true to deactivate a network activated plugin. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
slug requiredpathstringThe plugin's slug: the name WP-CLI lists it under.
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, ExtensionActivateRequest

Fields

NameTypeDescription
networkboolean

Responses

StatusBodyDescription
202JobAccepted. 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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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
type requiredstringA node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan.
status requiredstringOne of: queued, dispatched, running, succeeded, failed, cancelled.
environment_id requiredstring or null (uuid)UUIDv7
site_id requiredstring or null (uuid)UUIDv7
node_id requiredstring or null (uuid)UUIDv7
group_id requiredstring or null (uuid)UUIDv7
progress requiredintegerRange: 0 to 100.
attempts requiredintegerRange: 0 to any.
error requiredobject or null
error.code requiredstring
error.message requiredstring
error.retryable requiredbooleanDefault: false.
result requiredobject or null
descriptionstring or nullWhat the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers.
site_namestring or nullThe name of the site the job belongs to, when it has one.
environment_namestring or nullThe name of the environment the job runs on, such as live or staging.
quietbooleanTrue for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet.
parent_job_idstring or null (uuid)The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers.
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.

Update a plugin

post/environments/{id}/plugins/{slug}/updatePermalink to Update a plugin

  • Scope: sites:write
  • Permission: tools.run
  • Needs a confirmation

Runs a WP-CLI command as a job on the node. Poll the job or follow its events. Live sites in Git mode refuse changes to code. Send confirm: true and confirm_name with the plugin name. A pre-update restore point is taken first. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
slug requiredpathstringThe plugin's slug: the name WP-CLI lists it under.
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.
confirmquerystringAn API key must say yes to this change: confirm=true here, or confirm: true in the JSON body. Without it the call answers 422 and changes nothing. One of: true.

Request body application/json, required, ExtensionConfirmRequest

Fields

NameTypeDescription
confirm requiredboolean
confirm_name requiredstring

Responses

StatusBodyDescription
202JobAccepted. 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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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
type requiredstringA node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan.
status requiredstringOne of: queued, dispatched, running, succeeded, failed, cancelled.
environment_id requiredstring or null (uuid)UUIDv7
site_id requiredstring or null (uuid)UUIDv7
node_id requiredstring or null (uuid)UUIDv7
group_id requiredstring or null (uuid)UUIDv7
progress requiredintegerRange: 0 to 100.
attempts requiredintegerRange: 0 to any.
error requiredobject or null
error.code requiredstring
error.message requiredstring
error.retryable requiredbooleanDefault: false.
result requiredobject or null
descriptionstring or nullWhat the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers.
site_namestring or nullThe name of the site the job belongs to, when it has one.
environment_namestring or nullThe name of the environment the job runs on, such as live or staging.
quietbooleanTrue for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet.
parent_job_idstring or null (uuid)The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers.
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.

List the themes on the site

get/environments/{id}/themesPermalink to List the themes on the site

  • Scope: sites:read
  • Permission: sites.read

Answers the list from the last list job on the site, kept by WP Waterfall, with refreshed_at. When there is none, or a change made through WP Waterfall finished after it, the list runs again through the WP-CLI runner: the API waits up to 10 seconds and returns 200, or 202 with the Job when it takes longer. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
limitqueryintegerHow many rows to return in one page: at most 200, and 200 when left out. Default: 200. Range: 1 to 200.
cursorquerystringThe next_cursor of the page before. Leave it out for the first page.

Responses

StatusBodyDescription
200ExtensionListThe themes
202JobAccepted. 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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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)

200 response fields

NameTypeDescription
data requiredarray of Extension
data[].name requiredstringThe WP-CLI name. It is the value the routes take as {slug}.
data[].title requiredstring
data[].version requiredstring
data[].status requiredstringOne of: active, inactive, must-use, dropin, parent.
data[].update_available requiredboolean
data[].update_version requiredstring or null
data[].auto_update requiredboolean or nullWordPress automatic updates for this extension, on staging and previews. Live code is a read-only release, so live has no automatic updates and this is null there.
data[].network_activebooleanWordPress Multisite: the plugin is network activated, which WP-CLI reports as active-network. Every site of the network runs it. Absent or false on a single site.
data[].vulnerablebooleanTrue when the installed version has a known vulnerability. Absent when no vulnerability source is set up or the environment was not matched yet, so an older answer reads as "not known".
data[].vulnerability_countintegerHow many known vulnerabilities this installed version has. Absent with vulnerable. Range: 0 to any.
next_cursor requiredstring or null
refreshed_at requiredstring or null (date-time)

Turn automatic updates on or off for every theme

put/environments/{id}/themes/auto-updatePermalink to Turn automatic updates on or off for every theme

  • Scope: sites:write
  • Permission: tools.run

Staging and previews only, in SFTP mode and Git mode. Saves the switch in WP Waterfall's own record and answers 200 with the switches, because the run itself is a separate job (see POST /environments/{id}/auto-updates/run). Live code is a read-only release, so live has no automatic updates: on live this answers 409 with the code live_is_immutable. While an external repository is connected, turning a switch on answers 409 with the code external_repository_connected. Update on staging, then promote staging to live. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
Idempotency-KeyheaderstringOptional on PUT and PATCH. When the call starts a job, a retry with the same key, path, and body within 24 hours returns that job instead of starting another. A different path or body starts a new job.

Request body application/json, required, AutoUpdateAllRequest

Fields

NameTypeDescription
enabled requiredboolean

Responses

StatusBodyDescription
200AutoUpdateStateThe automatic update switches after the change
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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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)

200 response fields

NameTypeDescription
environment_id requiredstring (uuid)UUIDv7
mode requiredstringHow an update reaches this environment: git saves a commit, sftp changes the working copy. One of: git, sftp.
supported requiredbooleanFalse on live, and while an external repository is connected.
unsupported_reason requiredstring or nullWhy it is off here, in one sentence. Null when it can run.
enabled requiredbooleanTrue when at least one switch is on and automatic updates can run here.
tier requiredstringsafe while Safe Updates is on and the site holds the add-on, otherwise plain. One of: plain, safe.
cadence requiredstringweekly for Safe Updates, daily otherwise. One of: daily, weekly.
plugins requiredobject
plugins.all requiredboolean
plugins.enabled requiredarray of string
plugins.disabled requiredarray of string
themes requiredobject
themes.all requiredboolean
themes.enabled requiredarray of string
themes.disabled requiredarray of string
safe requiredobject
safe.entitled requiredbooleanTrue when the site holds the Safe Updates add-on.
safe.enabled requiredbooleanTrue when Safe Updates is switched on here and the site holds the add-on.
safe.days requiredarray of integerThe days a run may start on, 0 is Sunday and 6 is Saturday, in timezone.
safe.hour requiredintegerThe window starts at this hour, in timezone, and lasts two hours. Range: 0 to 23.
safe.timezone requiredstring
safe.window_hours requirednumber
safe.pages requiredarray of objectThe pages tested, each with the match it must reach.
safe.exclude_selectors requiredarray of stringElements taken out of the pictures of every page.

Change several themes at once

post/environments/{id}/themes/bulkPermalink to Change several themes at once

  • Scope: sites:write
  • Permission: tools.run
  • Needs a confirmation

Runs one WP-CLI command for every name given, as one job. Update and delete need confirm: true. Live sites in Git mode refuse changes to code. enable_auto_update and disable_auto_update save the switches and answer 200 with them, and live answers 409 live_is_immutable to them. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
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.
confirmquerystringAn API key must say yes to this change: confirm=true here, or confirm: true in the JSON body. Without it the call answers 422 and changes nothing. One of: true.

Request body application/json, required, BulkExtensionRequest

Fields

NameTypeDescription
action requiredstringOne of: activate, deactivate, update, delete, enable_auto_update, disable_auto_update.
slugs requiredarray of string
confirmboolean
networkbooleanNetwork wide, for WordPress Multisite. Only with activate and deactivate.

Responses

StatusBodyDescription
200AutoUpdateStateFor enable_auto_update and disable_auto_update only: the switches after the change
202JobAccepted. 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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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)

200 response fields

NameTypeDescription
environment_id requiredstring (uuid)UUIDv7
mode requiredstringHow an update reaches this environment: git saves a commit, sftp changes the working copy. One of: git, sftp.
supported requiredbooleanFalse on live, and while an external repository is connected.
unsupported_reason requiredstring or nullWhy it is off here, in one sentence. Null when it can run.
enabled requiredbooleanTrue when at least one switch is on and automatic updates can run here.
tier requiredstringsafe while Safe Updates is on and the site holds the add-on, otherwise plain. One of: plain, safe.
cadence requiredstringweekly for Safe Updates, daily otherwise. One of: daily, weekly.
plugins requiredobject
plugins.all requiredboolean
plugins.enabled requiredarray of string
plugins.disabled requiredarray of string
themes requiredobject
themes.all requiredboolean
themes.enabled requiredarray of string
themes.disabled requiredarray of string
safe requiredobject
safe.entitled requiredbooleanTrue when the site holds the Safe Updates add-on.
safe.enabled requiredbooleanTrue when Safe Updates is switched on here and the site holds the add-on.
safe.days requiredarray of integerThe days a run may start on, 0 is Sunday and 6 is Saturday, in timezone.
safe.hour requiredintegerThe window starts at this hour, in timezone, and lasts two hours. Range: 0 to 23.
safe.timezone requiredstring
safe.window_hours requirednumber
safe.pages requiredarray of objectThe pages tested, each with the match it must reach.
safe.exclude_selectors requiredarray of stringElements taken out of the pictures of every page.

Read the themes from the site again

post/environments/{id}/themes/refreshPermalink to Read the themes from the site again

  • Scope: sites:read
  • Permission: sites.read

Runs the list again on the node as a job, for example after a push or a change made in WordPress. Read the list again when the job succeeds. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
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.

Responses

StatusBodyDescription
202JobAccepted. 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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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
type requiredstringA node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan.
status requiredstringOne of: queued, dispatched, running, succeeded, failed, cancelled.
environment_id requiredstring or null (uuid)UUIDv7
site_id requiredstring or null (uuid)UUIDv7
node_id requiredstring or null (uuid)UUIDv7
group_id requiredstring or null (uuid)UUIDv7
progress requiredintegerRange: 0 to 100.
attempts requiredintegerRange: 0 to any.
error requiredobject or null
error.code requiredstring
error.message requiredstring
error.retryable requiredbooleanDefault: false.
result requiredobject or null
descriptionstring or nullWhat the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers.
site_namestring or nullThe name of the site the job belongs to, when it has one.
environment_namestring or nullThe name of the environment the job runs on, such as live or staging.
quietbooleanTrue for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet.
parent_job_idstring or null (uuid)The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers.
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.

One theme

get/environments/{id}/themes/{slug}Permalink to One theme

  • Scope: sites:read
  • Permission: sites.read

Reads through the WP-CLI runner. The API waits up to 10 seconds and returns 200 with the result, or 202 with the Job when it takes longer. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
slug requiredpathstringThe theme's slug: the name WP-CLI lists it under.

Responses

StatusBodyDescription
200ExtensionThe theme
202JobAccepted. 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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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)

200 response fields

NameTypeDescription
name requiredstringThe WP-CLI name. It is the value the routes take as {slug}.
title requiredstring
version requiredstring
status requiredstringOne of: active, inactive, must-use, dropin, parent.
update_available requiredboolean
update_version requiredstring or null
auto_update requiredboolean or nullWordPress automatic updates for this extension, on staging and previews. Live code is a read-only release, so live has no automatic updates and this is null there.
network_activebooleanWordPress Multisite: the plugin is network activated, which WP-CLI reports as active-network. Every site of the network runs it. Absent or false on a single site.
vulnerablebooleanTrue when the installed version has a known vulnerability. Absent when no vulnerability source is set up or the environment was not matched yet, so an older answer reads as "not known".
vulnerability_countintegerHow many known vulnerabilities this installed version has. Absent with vulnerable. Range: 0 to any.

Delete a theme

delete/environments/{id}/themes/{slug}Permalink to Delete a theme

  • Scope: sites:write
  • Permission: tools.run
  • Needs a confirmation

Runs a WP-CLI command as a job on the node. Poll the job or follow its events. Live sites in Git mode refuse changes to code. Send confirm=true and confirm_name with the theme name as query parameters. The active theme cannot be deleted. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
slug requiredpathstringThe theme's slug: the name WP-CLI lists it under.
confirm requiredquerystringOne of: true.
confirm_name requiredquerystring

Responses

StatusBodyDescription
202JobAccepted. 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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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
type requiredstringA node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan.
status requiredstringOne of: queued, dispatched, running, succeeded, failed, cancelled.
environment_id requiredstring or null (uuid)UUIDv7
site_id requiredstring or null (uuid)UUIDv7
node_id requiredstring or null (uuid)UUIDv7
group_id requiredstring or null (uuid)UUIDv7
progress requiredintegerRange: 0 to 100.
attempts requiredintegerRange: 0 to any.
error requiredobject or null
error.code requiredstring
error.message requiredstring
error.retryable requiredbooleanDefault: false.
result requiredobject or null
descriptionstring or nullWhat the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers.
site_namestring or nullThe name of the site the job belongs to, when it has one.
environment_namestring or nullThe name of the environment the job runs on, such as live or staging.
quietbooleanTrue for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet.
parent_job_idstring or null (uuid)The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers.
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.

Activate a theme

post/environments/{id}/themes/{slug}/activatePermalink to Activate a theme

  • Scope: sites:write
  • Permission: tools.run

Runs a WP-CLI command as a job on the node. Poll the job or follow its events. Live sites in Git mode refuse changes to code. On a WordPress Multisite network, send network: true to enable the theme for the network (wp theme enable --network) instead of activating it on the main site. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
slug requiredpathstringThe theme's slug: the name WP-CLI lists it under.
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, ExtensionActivateRequest

Fields

NameTypeDescription
networkboolean

Responses

StatusBodyDescription
202JobAccepted. 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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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
type requiredstringA node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan.
status requiredstringOne of: queued, dispatched, running, succeeded, failed, cancelled.
environment_id requiredstring or null (uuid)UUIDv7
site_id requiredstring or null (uuid)UUIDv7
node_id requiredstring or null (uuid)UUIDv7
group_id requiredstring or null (uuid)UUIDv7
progress requiredintegerRange: 0 to 100.
attempts requiredintegerRange: 0 to any.
error requiredobject or null
error.code requiredstring
error.message requiredstring
error.retryable requiredbooleanDefault: false.
result requiredobject or null
descriptionstring or nullWhat the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers.
site_namestring or nullThe name of the site the job belongs to, when it has one.
environment_namestring or nullThe name of the environment the job runs on, such as live or staging.
quietbooleanTrue for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet.
parent_job_idstring or null (uuid)The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers.
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.

Turn automatic updates on or off for a theme

put/environments/{id}/themes/{slug}/auto-updatePermalink to Turn automatic updates on or off for a theme

  • Scope: sites:write
  • Permission: tools.run

Staging and previews only, in SFTP mode and Git mode. Saves the switch in WP Waterfall's own record and answers 200 with the switches, because the run itself is a separate job (see POST /environments/{id}/auto-updates/run). Live code is a read-only release, so live has no automatic updates: on live this answers 409 with the code live_is_immutable. While an external repository is connected, turning a switch on answers 409 with the code external_repository_connected. Update on staging, then promote staging to live. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
slug requiredpathstringThe theme's slug: the name WP-CLI lists it under.
Idempotency-KeyheaderstringOptional on PUT and PATCH. When the call starts a job, a retry with the same key, path, and body within 24 hours returns that job instead of starting another. A different path or body starts a new job.

Request body application/json, required, AutoUpdateRequest

Fields

NameTypeDescription
enabled requiredboolean

Responses

StatusBodyDescription
200AutoUpdateStateThe automatic update switches after the change
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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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)

200 response fields

NameTypeDescription
environment_id requiredstring (uuid)UUIDv7
mode requiredstringHow an update reaches this environment: git saves a commit, sftp changes the working copy. One of: git, sftp.
supported requiredbooleanFalse on live, and while an external repository is connected.
unsupported_reason requiredstring or nullWhy it is off here, in one sentence. Null when it can run.
enabled requiredbooleanTrue when at least one switch is on and automatic updates can run here.
tier requiredstringsafe while Safe Updates is on and the site holds the add-on, otherwise plain. One of: plain, safe.
cadence requiredstringweekly for Safe Updates, daily otherwise. One of: daily, weekly.
plugins requiredobject
plugins.all requiredboolean
plugins.enabled requiredarray of string
plugins.disabled requiredarray of string
themes requiredobject
themes.all requiredboolean
themes.enabled requiredarray of string
themes.disabled requiredarray of string
safe requiredobject
safe.entitled requiredbooleanTrue when the site holds the Safe Updates add-on.
safe.enabled requiredbooleanTrue when Safe Updates is switched on here and the site holds the add-on.
safe.days requiredarray of integerThe days a run may start on, 0 is Sunday and 6 is Saturday, in timezone.
safe.hour requiredintegerThe window starts at this hour, in timezone, and lasts two hours. Range: 0 to 23.
safe.timezone requiredstring
safe.window_hours requirednumber
safe.pages requiredarray of objectThe pages tested, each with the match it must reach.
safe.exclude_selectors requiredarray of stringElements taken out of the pictures of every page.

Disable a theme for the network

post/environments/{id}/themes/{slug}/deactivatePermalink to Disable a theme for the network

  • Scope: sites:write
  • Permission: tools.run

Runs a WP-CLI command as a job on the node. Poll the job or follow its events. Live sites in Git mode refuse changes to code. A site always has one active theme, so this only works on a WordPress Multisite network: send network: true to disable the theme for the network (wp theme disable --network). Without it the answer is 422. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
slug requiredpathstringThe theme's slug: the name WP-CLI lists it under.
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, ExtensionActivateRequest

Fields

NameTypeDescription
networkboolean

Responses

StatusBodyDescription
202JobAccepted. 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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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
type requiredstringA node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan.
status requiredstringOne of: queued, dispatched, running, succeeded, failed, cancelled.
environment_id requiredstring or null (uuid)UUIDv7
site_id requiredstring or null (uuid)UUIDv7
node_id requiredstring or null (uuid)UUIDv7
group_id requiredstring or null (uuid)UUIDv7
progress requiredintegerRange: 0 to 100.
attempts requiredintegerRange: 0 to any.
error requiredobject or null
error.code requiredstring
error.message requiredstring
error.retryable requiredbooleanDefault: false.
result requiredobject or null
descriptionstring or nullWhat the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers.
site_namestring or nullThe name of the site the job belongs to, when it has one.
environment_namestring or nullThe name of the environment the job runs on, such as live or staging.
quietbooleanTrue for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet.
parent_job_idstring or null (uuid)The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers.
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.

Update a theme

post/environments/{id}/themes/{slug}/updatePermalink to Update a theme

  • Scope: sites:write
  • Permission: tools.run
  • Needs a confirmation

Runs a WP-CLI command as a job on the node. Poll the job or follow its events. Live sites in Git mode refuse changes to code. Send confirm: true and confirm_name with the theme name. A pre-update restore point is taken first. Needs WordPress on the environment: without it the answer is 409 with the code wordpress_not_installed.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the environment.
slug requiredpathstringThe theme's slug: the name WP-CLI lists it under.
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.
confirmquerystringAn API key must say yes to this change: confirm=true here, or confirm: true in the JSON body. Without it the call answers 422 and changes nothing. One of: true.

Request body application/json, required, ExtensionConfirmRequest

Fields

NameTypeDescription
confirm requiredboolean
confirm_name requiredstring

Responses

StatusBodyDescription
202JobAccepted. 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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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
type requiredstringA node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan.
status requiredstringOne of: queued, dispatched, running, succeeded, failed, cancelled.
environment_id requiredstring or null (uuid)UUIDv7
site_id requiredstring or null (uuid)UUIDv7
node_id requiredstring or null (uuid)UUIDv7
group_id requiredstring or null (uuid)UUIDv7
progress requiredintegerRange: 0 to 100.
attempts requiredintegerRange: 0 to any.
error requiredobject or null
error.code requiredstring
error.message requiredstring
error.retryable requiredbooleanDefault: false.
result requiredobject or null
descriptionstring or nullWhat the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers.
site_namestring or nullThe name of the site the job belongs to, when it has one.
environment_namestring or nullThe name of the environment the job runs on, such as live or staging.
quietbooleanTrue for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet.
parent_job_idstring or null (uuid)The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers.
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.

Approve a run that waits for your confirmation

post/sites/{id}/auto-updates/runs/{run_id}/approvePermalink to Approve a run that waits for your confirmation

  • Scope: sites:write
  • Permission: code.deploy
  • Needs a confirmation

A run whose pages matched less than the required match stops with the outcome needs_confirmation, with the updates on staging and the restore point kept. Approve saves the updates and, when the run was set up to deploy to live, ships them to live (code only). It runs as one quiet job. Send confirm: true. A run that is not waiting answers 409 not_waiting_for_confirmation. A repeated approve returns the same job. Needs the permission to deploy code.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the site.
run_id requiredpathstring (uuid)The id of the run.
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.
confirmquerystringAn API key must say yes to this change: confirm=true here, or confirm: true in the JSON body. Without it the call answers 422 and changes nothing. One of: true.

Request body application/json, required, AutoUpdateResolveRequest

Fields

NameTypeDescription
confirm requiredboolean

Responses

StatusBodyDescription
202JobAccepted. The body is the Job object.
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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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
type requiredstringA node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan.
status requiredstringOne of: queued, dispatched, running, succeeded, failed, cancelled.
environment_id requiredstring or null (uuid)UUIDv7
site_id requiredstring or null (uuid)UUIDv7
node_id requiredstring or null (uuid)UUIDv7
group_id requiredstring or null (uuid)UUIDv7
progress requiredintegerRange: 0 to 100.
attempts requiredintegerRange: 0 to any.
error requiredobject or null
error.code requiredstring
error.message requiredstring
error.retryable requiredbooleanDefault: false.
result requiredobject or null
descriptionstring or nullWhat the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers.
site_namestring or nullThe name of the site the job belongs to, when it has one.
environment_namestring or nullThe name of the environment the job runs on, such as live or staging.
quietbooleanTrue for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet.
parent_job_idstring or null (uuid)The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers.
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.

Turn down a run that waits for your confirmation

post/sites/{id}/auto-updates/runs/{run_id}/rejectPermalink to Turn down a run that waits for your confirmation

  • Scope: sites:write
  • Permission: code.deploy
  • Needs a confirmation

Puts the restore point back on staging and marks the run rejected. The previous baseline pictures stay. Send confirm: true. A run that is not waiting answers 409 not_waiting_for_confirmation. A repeated reject returns the same job. Needs the permission to deploy code.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The id of the site.
run_id requiredpathstring (uuid)The id of the run.
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.
confirmquerystringAn API key must say yes to this change: confirm=true here, or confirm: true in the JSON body. Without it the call answers 422 and changes nothing. One of: true.

Request body application/json, required, AutoUpdateResolveRequest

Fields

NameTypeDescription
confirm requiredboolean

Responses

StatusBodyDescription
202JobAccepted. The body is the Job object.
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.
404ProblemThe thing in the path does not exist, or it belongs to another company. The answer is the same for both.
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
type requiredstringA node job type or an edge job type. One of: provision_environment, delete_environment, set_php_version, set_php_performance, set_php_settings, restart_php, clear_server_cache, search_replace, run_wp_cli, rotate_credentials, apply_nginx_settings, db_import, cron_sync, build_release, activate_release, create_repository, create_node, drain_node, delete_node, purchase_cud, files_write, files_delete, files_rename, phpmyadmin_session, db_check, db_rows_write, db_sql_execute, ssh_update, sftp_account_change, tool_setting, wp_user_create, set_code_mode, env_var_set, env_var_delete, reset_site, set_webroot, set_wp_secrets_key, wp_admin_login_token, wp_login_user_ensure, wp_login_users_remove, repo_commit_read, create_preview_environment, clone_content, merge_branch, create_snapshot, restore_snapshot, set_apm, push_content, commit_branch, sync_working_tree, issue_certificate, register_hostname, unregister_hostname, object_cache_set, patchstack_credentials_write, patchstack_credentials_remove, patchstack_kill_switch, set_disk_quota, prepare_standby, start_replication, verify_replica, fence_site, resync_replica, set_site_suspension, clear_log, promote_environment, copy_into_live, auto_update_run, delete_snapshot, prune_snapshots, backup_download, configure_git_remote, import_git_push, pull_external_git, offsite_backup_test, offsite_backup_run, offsite_backup_list, offsite_backup_restore, restart_service, container_exec, set_network_domain, map_subsite_domain, reap_orphan_containers, migrate_container, migrate_control, migrate_export, migrate_import, migrate_precopy, migrate_delta, migrate_freeze, migrate_thaw, update_mu_plugin, import_site_files, wake_environment, set_sleep_policy, integrity_check, malware_scan, malware_restore, container_images, rebuild_container, update_runtime_image, node_reboot_status, schedule_node_reboot, reboot_node, core_update_commit, core_update_advance, core_update_run, takedown_environment, release_takedown, set_egress, set_standby_hold, copy_evidence, drop_evidence, transfer_site, relabel_environment, record_site_facts, attach_domain, remove_domain, set_primary_domain, apply_redirects, apply_ip_rules, apply_bot_protection, purge_cache, apply_edge_settings, provision_dns_zone, refresh_ssl, set_edge_certificate, remove_edge_certificate, rename_site, rename_temp_hostname, network_sync, migration_fetch, migration_inspect, migration_triage, migration_import, migration_move, export_company_data, export_user_data, export_audit_log, purge_company, reseal_secrets, run_pagespeed, patchstack_provision, patchstack_deprovision, patchstack_reconcile, wp_login_member_users_remove, provision_standby, failover_site, failback_site, accessibility_scan.
status requiredstringOne of: queued, dispatched, running, succeeded, failed, cancelled.
environment_id requiredstring or null (uuid)UUIDv7
site_id requiredstring or null (uuid)UUIDv7
node_id requiredstring or null (uuid)UUIDv7
group_id requiredstring or null (uuid)UUIDv7
progress requiredintegerRange: 0 to 100.
attempts requiredintegerRange: 0 to any.
error requiredobject or null
error.code requiredstring
error.message requiredstring
error.retryable requiredbooleanDefault: false.
result requiredobject or null
descriptionstring or nullWhat the job does, in one plain sentence, such as "Turn on the server cron on site Elric (staging)". It names the action and the place and never holds a secret, a value, or site content: a WP-CLI command shows its command words and the names that are safe to show, and a placeholder such as "(value hidden)" for the rest. Null on old servers.
site_namestring or nullThe name of the site the job belongs to, when it has one.
environment_namestring or nullThe name of the environment the job runs on, such as live or staging.
quietbooleanTrue for background work and reads, such as a cron sync or a login link lookup. A customer screen leaves a quiet job out of its bell, its lists, and its toasts. Quiet jobs are still stored, audited, and retried. Absent on old servers, where nothing is quiet.
parent_job_idstring or null (uuid)The job this one works for: the job that ran it as a step, or that queued it as a follow-up. That job reads as done only once its follow-ups ended: it stays running until then, and its log names any follow-up that failed. Null for a job nobody started on another's behalf. Absent on old servers.
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.