POST
/
api
/
v1
/
workspace-memberships
{
  "id": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "userId": "<string>",
  "workspaceId": "<string>",
  "privileges": [
    "ROLE_WORKSPACE_OWNER"
  ],
  "accessTokens": []
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
userId
string
required
workspaceId
string
required
privileges
enum<string>[]
Available options:
ROLE_WORKSPACE_OWNER,
ROLE_WORKSPACE_ADMIN,
ROLE_WORKSPACE_MEMBER

Response

200
application/json
Successful Response
userId
string
required
workspaceId
string
required
privileges
enum<string>[]
required
Available options:
ROLE_WORKSPACE_OWNER,
ROLE_WORKSPACE_ADMIN,
ROLE_WORKSPACE_MEMBER
id
string
createdAt
string
updatedAt
string
accessTokens
object[]