REST API áttekintés

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évTípus
tokenkötelezőstring

Válaszok

  • 200
  • 403 An error
  • 422 Validation error
  • 401 Unauthenticated

GET /workspaces/{workspace}/invitations

Invitations not accepted yet, expired ones included (flagged), newest first

Paraméterek

NévHelyTípusLeírás
workspacekötelezőpathstring

The workspace slug

cursorquerystring

Opaque cursor taken from meta.next_cursor of the previous page; omit it for the first page.

limitqueryinteger

Page size.

Válaszok

  • 200
  • 403 Authorization error
  • 404 Not found
  • 401 Unauthenticated

DELETE /workspaces/{workspace}/invitations/{invitation}

Revokes an invitation; its link stops working at once. Only an owner revokes an owner invitation

Paraméterek

NévHelyTípusLeírás
workspacekötelezőpathstring

The workspace slug

invitationkötelezőpathinteger

The invitation ID

Válaszok

  • 204 No content
  • 403 Authorization error
  • 404 Not found
  • 401 Unauthenticated