access
PUT /v1/orgs/{orgId}/members/{userId}/client-access
Limit a team member to named client accounts, or lift the limit.
Authentication
Send an API key as a bearer token. The key must carry the members.role.assign permission; a key without it is refused with 403, not 404.
Where your organisation id goes
This endpoint takes your organisation id in the URL itself, as orgId. Substitute it into the path — there is no header or query parameter that will do instead.
Your organisation id is on the API keys screen in your dashboard, beside the key itself. It is the same id in every call you make.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X PUT https://api.zinndigital.com/v1/orgs/{orgId}/members/{userId}/client-access \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "limited": <boolean> }'Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
For a reseller or agency whose team includes contractors (ANS-147). Requires members.role.assign on the org; a limited member never holds it, so cannot lift their own limit or anyone else's. Refusals: 403 for your own access, 409 for an owner (an owner always reaches every client account), 400 for an id that is not a client account of this organisation, 404 for a non-member. Audit-logged as member.client_access.changed.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
orgId (path) | Uuid | Yes | Organization ID (UUIDv7). |
userId (path) | Uuid | Yes | The team member. |
Request body
| Name | Type | Required | What it is |
|---|---|---|---|
limited | boolean | Yes | false lifts the limit (the member reaches every client account again). true limits them to client_org_ids; an empty list means the organisation only, never "no limit". |
client_org_ids | Uuid[] | No | Client accounts of this organisation (any depth below it). |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
user_id | Uuid | Yes | UUIDv7 identifier — sortable by creation time. |
limited | boolean | Yes | — |
client_org_ids | Uuid[] | Yes | The named client accounts, sorted. Empty when not limited. |
clients | object[] | Yes | The named client accounts that still exist, with their names. |
Errors this endpoint can return
401 · 403 · 404 · 409 · 422 · 429