API · v1.4.0
Members
4 endpoints. Paths are relative to /api/v1 on your own instance; authentication is described on the overview page.
GET /workspaces/{workspace}/members
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
cursor | query | string | Opaque cursor taken from |
limit | query | integer | Page size. |
Responses
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
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
Request body
| Name | Type | Description |
|---|---|---|
emailrequired | string | |
rolerequired | 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. |
Responses
202403Authorization error422Validation error404Not found401Unauthenticated
PATCH /workspaces/{workspace}/members/{user}
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
userrequired | path | integer | The user ID |
Request body
| Name | Type |
|---|---|
rolerequired | WorkspaceRole (owner, admin, editor, viewer) |
Responses
200403Authorization error422Validation error404Not found401Unauthenticated
DELETE /workspaces/{workspace}/members/{user}
Parameters
| Name | In | Type | Description |
|---|---|---|---|
workspacerequired | path | string | The workspace slug |
userrequired | path | integer | The user ID |
Responses
204No content403Authorization error422Validation error404Not found401Unauthenticated