REST API áttekintés

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é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

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évHelyTípusLeírás
workspacekötelezőpathstring

The workspace slug

Kéréstörzs

NévTípusLeírás
emailkötelezőstring
rolekötelezőWorkspaceRole (owner, admin, editor, viewer)
localeen | 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

  • 202
  • 403 Authorization error
  • 422 Validation error
  • 404 Not found
  • 401 Unauthenticated

PATCH /workspaces/{workspace}/members/{user}

Paraméterek

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

The workspace slug

userkötelezőpathinteger

The user ID

Kéréstörzs

NévTípus
rolekötelezőWorkspaceRole (owner, admin, editor, viewer)

Válaszok

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

DELETE /workspaces/{workspace}/members/{user}

Paraméterek

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

The workspace slug

userkötelezőpathinteger

The user ID

Válaszok

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