POST
/
v2
/
workspaces
/
{workspaceId}
/
users
Add users to a workspace
curl --request POST \
  --url https://api.pelanor.io/v2/workspaces/{workspaceId}/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "users": [
    {
      "email": "<string>",
      "role": "ADMIN"
    }
  ]
}'
{}
Attaches an existing user to a workspace.
This endpoint will not invite or add users that are new to this organization. Use the Invite User endpoint instead.

Authorizations

Authorization
string
header
required

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

Path Parameters

workspaceId
string
required

Body

application/json

Response

200
application/json

A successful response.

The response is of type object.