hosting

GET /v1/sites/{siteId}/wordpress/users

List the accounts on a site's WordPress.

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

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

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

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

Санҷидан

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

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

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

Тафсилот

Every WordPress account on the install, with its roles and whether it is an administrator. ⛔ **This read requires `sites.panel_access`, unlike every other read on this surface**: it carries the email address of every account on the customer's site — personal data about the customer's own users — which a read-only member of the organisation has no reason to hold. The rows come from two vendor endpoints behind two different capability flags (`wp_users` and `wp_admin_users`), and what the package permits decides which halves are merged. `is_administrator` is set from the endpoint a row came from, not guessed from a role string. `404` for a site with no vendor hosting package.

Параметрҳо

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

Ҷавоб

НомНамудТалаб карда мешавадИн чӣ аст
dataSiteWordPressUser[]БалеThe accounts, merged from the two vendor endpoints the package permits. A package carrying only one of the two flags yields only that half, rather than a refusal for the whole l…

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

401 · 403 · 404 · 429 · 503