API · v1.4.0
Invitations
3 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.
POST /invitations/accept
Accepts an invitation addressed to the signed-in user's e-mail. Unknown, expired, revoked, already accepted and foreign invitations, and those whose inviter can no longer grant the role, all fail with the same 422
Kéréstörzs
| Név | Típus |
|---|---|
tokenkötelező | string |
Válaszok
200403An error422Validation error401Unauthenticated
GET /workspaces/{workspace}/invitations
Invitations not accepted yet, expired ones included (flagged), newest first
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
DELETE /workspaces/{workspace}/invitations/{invitation}
Revokes an invitation; its link stops working at once. Only an owner revokes an owner invitation
Paraméterek
| Név | Hely | Típus | Leírás |
|---|---|---|---|
workspacekötelező | path | string | The workspace slug |
invitationkötelező | path | integer | The invitation ID |
Válaszok
204No content403Authorization error404Not found401Unauthenticated