[POST] Invite Users

Use this request to invite one or more users to the current tenant and workspace by assigning them a role.

Invite Users

POST/api/v1.0/external/sdworkspace/inviteusers

Body application/json InviteUsersRequest

Name
Type
Description

users

array of ExternalUserModel

List of users to be invited to the current tenant. Each entry must contain a valid email and role name. Duplicate emails are not allowed.

workspaceId

integer

The ID of the workspace.

Body application/json ExternalUserModel

Name
Type
Description

email

string

The user's email address. Must be unique and properly formatted.

roleName

string

The name of the role to assign. Must match one of the available roles from the /availableroles endpoint.

Example Request

curl -X 'POST' \
'https://cloud.smartdocumentor.net/api/v1.0/external/sdworkspace/inviteusers' \
  --header 'Authorization: Bearer {your access token here}' \
  --header 'accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
  "workspaceId": 1,
  "users": [
    {
      "email": "[email protected]",
      "roleName": "Administrator"
    }
  ]
}'

Responses

Response Body Empty

Indicates that the operation was successful and a invitation email will be sent to the invited user(s).

Last updated