support
POST /v1/sites/{siteId}/diagnose
Run the support AI against one site — check it, fix what is fixable, record the rest.
身份验证
请将 API 密钥作为 bearer 令牌发送。该密钥必须具有 hosting.php.manage 权限;缺少该权限的密钥将被拒绝并返回 403 状态码,而非 404。
此端点不需要组织 ID。您的密钥已用于识别其所属的组织,且响应范围也仅限于该组织。
免费试用
将尖括号中的内容替换为您自己的值,并将键占位符替换为您仪表板中的一个键。
curl -X POST https://api.zinndigital.com/v1/sites/{siteId}/diagnose \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'已登录?您仪表板中的 API 控制台会自动填入您真实的组织 ID 和您自己的密钥,并针对实时 API 运行请求,以便您查看实际的响应。 在 API 控制台中打开此端点
详细信息
Runs every diagnostic probe against the named site: whether it is being throttled by its plan's LVE limits (the cause of `508 Resource Limit Is Reached`), whether a `php.ini` value is below what the plan already allows, whether it runs a retired PHP version, and how much of its disk allowance is used. Remedies on the platform's named safe list are then applied — audit-logged and reversible — and everything that cannot be fixed becomes a **recommendation** the customer and staff can both see. ⛔⛔ **A remedy can never grant a limit the plan does not include.** Every one runs through the same customer-band service a person would use, and an application that moved what the site is entitled to is refused rather than reported as applied. ⛔ `complete` is `false` and `blind_probes` names what could not be read. "We found nothing wrong" and "we could not look" are different answers and the client must render them differently. Requires `hosting.php.manage`.
参数
| 名称 | 类型 | 必填 | 内容简介 |
|---|---|---|---|
siteId (path) | Uuid | 是 | The site to check. |
请求正文
| 名称 | 类型 | 必填 | 内容简介 |
|---|---|---|---|
apply_fixes | boolean | 否 | Set `false` to diagnose without applying anything. The default applies the safe list, which is the platform's ruled behaviour. |
响应
| 名称 | 类型 | 必填 | 内容简介 |
|---|---|---|---|
complete | boolean | 是 | False when any probe could not run. |
blind_probes | string[] | 是 | The probes that could not look. |
probes | SiteDiagnosticProbe[] | 是 | — |
findings | TicketDeflectionFinding[] | 是 | — |
applied | string[] | 是 | Remedies applied automatically, by key. Every one is audit-logged. |
refused | object[] | 否 | Remedies that were attempted and refused, with the reason code. `ENTITLEMENT_DRIFT` means the platform detected that a fix would have changed what the site is entitled to and st… |
recommendations | SupportRecommendation[] | 是 | — |
notified | integer | 否 | How many customers were e-mailed. At most one message per finding, ever. |
notify_skipped_not_in_good_standing | integer | 否 | Notifications skipped because the account is suspended or unpaid. ⛔ Counted rather than silently dropped — a skip and a broken emitter look identical otherwise. |
notify_failed | integer | 否 | Notifications that were attempted and raised. ⛔ Its own number: a broken emitter and a quiet run both report `notified: 0`, so a customer who was never told would otherwise be i… |
此端点可能返回的错误
401 · 403 · 404 · 422