Skip to main content
POST
/
api
/
invite
Send an invitation to a new user.
curl --request POST \
  --url https://api.example.com/api/invite \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "roleId": 2
}
'

Body

application/json
email
string
required

Email address of the user to invite

roleId
number
required

Role ID to assign to the invited user

Example:

2

Response

201 - undefined