hosting
POST /v1/sites/{siteId}/plugin-guard/integrity/{findingId}/repair
Repair a site integrity finding now (re-install WordPress core files, quarantine unknown core files, or put the site address back).
Authentication
Send an API key as a bearer token. The key must carry the sites.panel_access permission; a key without it is refused with 403, not 404.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X POST https://api.zinndigital.com/v1/sites/{siteId}/plugin-guard/integrity/{findingId}/repair \
-H "Authorization: Bearer zdk_live_…"Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
L06 s1014 (docs/1027 §6). Runs in the background (202); the finding's state changes when it is done. Core files are re-installed at the site's OWN WordPress version, never wp-content. Requires sites.panel_access. Audit-logged as site.integrity.repair_requested.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
siteId (path) | string | Yes | — |
findingId (path) | string | Yes | — |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
id | string | Yes | — |
kind | string<core_modified, core_missing, core_extra, address, unchecked> | Yes | — |
state | string<reported, repaired, repair_failed, gone, dismissed> | Yes | — |
version | string | No | The WordPress version the core files were compared with. |
files | string[] | No | Up to 50 core file paths relative to the site's public folder. |
count | integer | No | Every file found (the list shows at most 50). |
home | string | No | — |
siteurl | string | No | — |
first_seen_at | string | Yes | — |
last_seen_at | string | Yes | — |
repaired_at | string | No | — |
repair_note | string | No | — |
site_id | string | No | Staff only. |
org_id | string | No | Staff only. |
domain | string | No | Staff list only. |
actor | string | No | Staff only. |
Errors this endpoint can return
401 · 403 · 404 · 503