Prudai Developer API: leden
Members of the organisation (list, switch off or on, file a removal request). Personal tokens of an owner only; never issuable to a service key; writes wait for a different owner.
Basis-URL https://api.prudai.com/v1. Inloggen staat in Inloggen, scopes in Scopes en rechten, fouten in Fouten. Overzicht.
| Methode | Pad | Wat het doet | Stand |
|---|---|---|---|
GET | /v1/organizations/{id}/members | Members of the organisation | Binnenkort |
DELETE | /v1/organizations/{id}/members/{user_id} | Remove a member (a different owner approves; files a removal request) | Binnenkort |
POST | /v1/organizations/{id}/members/{user_id}/disabled | Switch a member off or on (a different owner approves) | Binnenkort |
Members of the organisation
GET /v1/organizations/{id}/members
Personal tokens of an organisation owner only. Name, e-mail, role, switched off, and whether a removal request is open.
- Stand: binnenkort, nog niet op productie.
- Scope:
account:members:read - Goedkeuring:
none, geen extra stap.
Parameters
idverplicht
The organisation id of the caller.offset
standaard:0· min. 0 · max. 100000limit
standaard:50· min. 1 · max. 100
Antwoorden
| Status | Betekenis |
|---|---|
200 | The members. |
401 | Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment. |
403 | Authenticated, but not allowed (missing scope, product not on the key or organisation, organisation suspended, Developer API switched off for the organisation, IP not on the allowlist, depth not permitted, licence does not permit redistribution). |
404 | Unknown model, source or document. |
429 | Rate limit, concurrency limit, Ultra daily quota or fair-use limit of the free sources operations exceeded. |
curl -s "https://api.prudai.com/v1/organizations/<id>/members" \ -H "Authorization: Bearer $PRUDAI_TOKEN"prudai leo organizations-members listRemove a member (a different owner approves; files a removal request)
DELETE /v1/organizations/{id}/members/{user_id}
Personal tokens of an owner only. The member is switched off in every product at once and a removal request is filed; Prudai decides on the erasure. Nothing is erased by this call.
- Stand: binnenkort, nog niet op productie.
- Scope:
account:members:delete - Goedkeuring:
review, een tweede persoon of rol keurt goed. - Verwijderen is zacht; zie Conventies.
Parameters
idverplicht
The organisation id of the caller.user_idverplicht
The member’s account id.
Antwoorden
| Status | Betekenis |
|---|---|
200 | The removal request. |
202 | Approval request; a different owner decides in the Console, then replay the exact request with X-Prudai-Approval. |
401 | Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment. |
403 | Authenticated, but not allowed (missing scope, product not on the key or organisation, organisation suspended, Developer API switched off for the organisation, IP not on the allowlist, depth not permitted, licence does not permit redistribution). |
404 | Unknown model, source or document. |
409 | A request with the same Idempotency-Key is still running. |
429 | Rate limit, concurrency limit, Ultra daily quota or fair-use limit of the free sources operations exceeded. |
curl -s -X DELETE "https://api.prudai.com/v1/organizations/<id>/members/<user_id>" \ -H "Authorization: Bearer $PRUDAI_TOKEN"prudai leo organizations-members deleteSwitch a member off or on (a different owner approves)
POST /v1/organizations/{id}/members/{user_id}/disabled
Personal tokens of an owner only. Off closes sign-in in every product, frees the seat and keeps all data.
- Stand: binnenkort, nog niet op productie.
- Scope:
account:members:write - Goedkeuring:
review, een tweede persoon of rol keurt goed.
Parameters
idverplicht
The organisation id of the caller.user_idverplicht
The member’s account id.
Body
JSON, verplicht.
disabledverplichtreasonverplicht
max. lengte 500
Antwoorden
| Status | Betekenis |
|---|---|
200 | The new state. |
202 | Approval request; a different owner decides in the Console, then replay the exact request with X-Prudai-Approval. |
401 | Missing, malformed, unknown, expired or revoked key, or a key used against the wrong environment. |
403 | Authenticated, but not allowed (missing scope, product not on the key or organisation, organisation suspended, Developer API switched off for the organisation, IP not on the allowlist, depth not permitted, licence does not permit redistribution). |
404 | Unknown model, source or document. |
409 | A request with the same Idempotency-Key is still running. |
429 | Rate limit, concurrency limit, Ultra daily quota or fair-use limit of the free sources operations exceeded. |
curl -s -X POST "https://api.prudai.com/v1/organizations/<id>/members/<user_id>/disabled" \ -H "Authorization: Bearer $PRUDAI_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "disabled": false, "reason": "string" }'prudai leo organizations-members disabled