hosting

GET /v1/sites/{siteId}/protection/file-permissions

Run the vendor's file-permission check on a site.

Ҳамаи нуқтаҳои ниҳоии hosting

Ҳамаи ҳуҷҷатҳои таҳиякунандагон

Санҷиши ҳаққоният

Kaliti API-ро ҳамчун рамзи доранда (bearer token) фиристед. Калит бояд дорои иҷозати sites.view бошад; калиди бидуни он бо хатои 403 рад карда мешавад, на 404.

Ин нуқтаи поёнӣ ягон рақами мушаххаси созмонро талаб намекунад. Калиди шумо аллакай созмонеро, ки ба он тааллуқ дорад, муайян мекунад ва ҷавоб ба он маҳдуд карда мешавад.

Санҷидан

Ҳар чизро дар қаavски кунҷӣ бо қиматҳои худ ва ҷойи нигоҳдорандаи калидро бо калима аз панели идоракунии худ иваз кунед.

curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/protection/file-permissions \
  -H "Authorization: Bearer zdk_live_…"

Воarid шудаед? Консоли API дар панели идоракунии шумо рақами мушаххаси ташкилоти воқеӣ ва калиди худро пур мекунад ва дархостро бар зидди API-и фаъол иҷро мекунад, то шумо посухи воқеиро бубинед. Ин нуқтаи ниҳоиро дар консоли API кушоед

Тафсилот

This GET RUNS the scan — it is not a cached read. The vendor's read is the check, so it walks the site's filesystem. It is an explicit "check my permissions" action and must never fire on mount or on window focus. check_id is the handle the fix needs, and it is nullable: null means the vendor gave us no handle, so actionable is false and there is nothing to apply. recommended on each failure is nullable for the same reason — the platform sometimes names a file without naming a mode, and a guessed 644 would be applied to the customer's file. 404 for a site with no vendor hosting package. Requires sites.view.

Параметрҳо

НомНамудТалаб карда мешавадИн чӣ аст
siteId (path)UuidБалеSite ID (UUIDv7).

Ҷавоб

НомНамудТалаб карда мешавадИн чӣ аст
check_idintegerБалеThe vendor's handle for this check. Null when the vendor gave us none, in which case there is nothing to apply and actionable is false. ⛔ A client never sends it back:…
public_html_wrongbooleanБалеWhether the document root's own mode is wrong.
root_wrongbooleanБалеWhether the package root's own mode is wrong.
failuresSitePermissionFailure[]БалеThe individual files the check flagged.
actionablebooleanБалеWhether Fix these can do anything: a live check handle and something to fix. Its own field so the button is not offered against a report that can only be refused.

Хатоҳое, ки ин нуқтаи ниҳоӣ метавонад баргардонад

401 · 403 · 404 · 429 · 503