API · v1.4.0
Members
4 végpont. Az útvonalak a saját példánya /api/v1 címéhez képest értendők; a hitelesítést az áttekintő oldal írja le.
GET /workspaces/{workspace}/members
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
cursor | query | string | Opaque cursor taken from |
limit | query | integer | Page size. |
Válaszok
200403Authorization error404Not found401Unauthenticated
POST /workspaces/{workspace}/members
Invites an address into the workspace. Every address gets the same answer and the same e-mail, whether or not an account exists for it; only an address that is already a member is refused. Inviting the same address again replaces the pending invitation and its link
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
Kéréstörzs
| Név | Típus | Leírás |
|---|---|---|
emailkötelező | string | |
rolekötelező | WorkspaceRole (owner, admin, editor, viewer) | |
locale | en | hu | The language of the e-mail; the admin interface sends its own. The invitee's language is unknown here (they may have no account), so the inviter's is the best guess. |
Válaszok
202403Authorization error422Validation error404Not found401Unauthenticated
PATCH /workspaces/{workspace}/members/{user}
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
userkötelező | path | integer | The user ID |
Kéréstörzs
| Név | Típus |
|---|---|
rolekötelező | WorkspaceRole (owner, admin, editor, viewer) |
Válaszok
200403Authorization error422Validation error404Not found401Unauthenticated
DELETE /workspaces/{workspace}/members/{user}
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
userkötelező | path | integer | The user ID |
Válaszok
204No content403Authorization error422Validation error404Not found401Unauthenticated