agency-board

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

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

همه نقاط پایانی agency-board

احراز هویت

یک کلید API را به عنوان یک توکن برbearer ارسال کنید. این نقطه پایانی مجوز خاصی را در مشخصات خود ذکر نمی‌کند، بنابراین به جای فرض کردن، حداقل نیازهای کلید خود را بدهید و پاسخ را بررسی کنید.

این نقطه پایانی هیچ شناسه سازمانی را دریافت نمی‌کند. کلید شما در حال حاضر سازمان مربوطه را مشخص می‌کند و پاسخ در همان محدوده ارائه می‌شود.

امتحان کنید

هر چیزی را که داخل براکت‌های زاویه‌دار قرار دارد با مقادیر خودتان جایگزین کنید، و نگهدارنده کلید را با کلیدی از داشبورد خود جایگزین نمایید.

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 در داشبورد شما شناسه سازمان واقعی و کلید خودتان را پر می‌کند و درخواست را روی API زنده اجرا می‌کند تا بتوانید پاسخ واقعی را ببینید. این نقطه پایانی را در کنسول 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