hosting

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

List the accounts on a site's WordPress.

Semua titik akhir hosting

Pengesahan

Hantar kunci API sebagai token pembawa. Kunci tersebut mesti membawa kebenaran sites.panel_access; kunci yang tidak mempunyainya akan ditolak dengan 403, bukan 404.

Titik akhir ini tidak memerlukan id organisasi. Kunci anda telah mengenal pasti organisasi kepunyaannya, dan respons dis skopkan kepadanya.

Cuba

Gantikan apa sahaja di dalam kurungan sudut dengan nilai anda sendiri, dan pemegang tempat kunci dengan kunci dari papan pemuka anda.

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

Sudah log masuk? Konsol API dalam papan pemuka anda mengisi id organisasi sebenar dan kunci anda sendiri, serta menjalankan permintaan terhadap API langsung supaya anda boleh melihat respons sebenar. Buka penamat ini dalam konsol API

Butiran

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.

Parameter

NamaJenisDiperlukanApakah ia
siteId (path)UuidYaSite ID (UUIDv7).

Respons

NamaJenisDiperlukanApakah ia
dataSiteWordPressUser[]YaThe 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…

Ralat yang boleh dikembalikan oleh titik akhir ini

401 · 403 · 404 · 429 · 503