agency-board

POST /v1/agency/boards/{boardId}/members

Put somebody on a board, or invite them by email.

جميع نقاط نهاية agency-board

المصادقة

أرسل مفتاح واجهة برمجة التطبيقات (API) كرمز حامل (bearer token). لا يحدد نقطة النهاية هذه إذنًا محددًا في المواصفات، لذا امنح مفتاحك الحد الأدنى الذي محتاجه وتحقق من الاستجابة بدلاً من الافتراض.

لا يقبل هذا الطرف أي معرف للمؤسسة. يحدد مفتاحك بالفعل المؤسسة التي ينتمي إليها، وتكون الاستجابة محصورة في نطاقها.

جربه الآن

استبدل أي شيء بين أقواس زاوية بقيمك الخاصة، والعنصر النائب للمفتاح بمفتاح من لوحة تحكمك.

curl -X POST https://api.zinndigital.com/v1/agency/boards/{boardId}/members \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "role": <string<manager, member, client>> }'

هل سجلت الدخول؟ تقوم وحدة تحكم واجهة برمجة التطبيقات في لوحة التحكم الخاصة بك بربط معرف مؤسستك الحقيقي ومفتاحك الخاص، وتنفذ الطلب مقابل واجهة برمجة التطبيقات المباشرة لتتمكن من رؤية الاستجابة الفعلية. افتح هذه النهاية الطرفية في وحدة تحكم API

التفاصيل

Give `user_id` for somebody who already has an account, or `email` to invite somebody who does not — the invitation goes through `tenancy.Invitation` and the person joins on acceptance, authenticated by Keycloak with no secret token in the flow. ⛔ A `client` seat may only be given to a member of the board's own client organisation, and **no seat is written for a pending invite**: a client's authorisation is a live membership of that organisation, re-read on every request, so a seat created before acceptance would look like access and confer none.

المعلمات

الاسمالنوعمطلوبما هو هذا
boardId (path)UuidنعمProject board ID (UUIDv7).

جسم الطلب

الاسمالنوعمطلوبما هو هذا
user_idstringلاSomebody who already has an account. Give this **or** `email`, not both.
emailstringلاInvite somebody who does not have an account yet.
rolestring<manager, member, client>نعم
member_org_idstringلاWhich organisation this seat belongs to. Ignored for a `client` seat, which is always the board's own client organisation.

الاستجابة

الاسمالنوعمطلوبما هو هذا
idUuidنعمUUIDv7 identifier — sortable by creation time (docs/02 §8).
board_idUuidنعمUUIDv7 identifier — sortable by creation time (docs/02 §8).
user_idUuidنعمUUIDv7 identifier — sortable by creation time (docs/02 §8).
member_org_idUuidنعمThe organisation this seat belongs to — the agency's, or the client's.
rolestring<manager, member, client>نعم
last_read_atstringلا
created_atstringلا
userAgencyBoardActorلاWho holds this seat, by name. ⛔ Render THIS, never `user_id` — the People drawer printed the id at a colleague's name until 2026-09-01 (`docs/425`).
invited_byAgencyBoardActorلا

الأخطاء التي يمكن أن تُرجعها نقطة النهاية هذه

401 · 403 · 404 · 422