cURL
curl --request POST \ --url https://api.example.com/api/v1/workspace-memberships \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "userId": "<string>", "workspaceId": "<string>", "privileges": [ "ROLE_WORKSPACE_OWNER" ] } '
{ "userId": "<string>", "workspaceId": "<string>", "privileges": [ "ROLE_WORKSPACE_OWNER" ], "id": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "accessTokens": [] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
1
ROLE_WORKSPACE_OWNER
ROLE_WORKSPACE_ADMIN
ROLE_WORKSPACE_MEMBER
Successful Response
Show child attributes
Was this page helpful?