cURL
curl --request POST \ --url https://api.example.com/api/invite \ --header 'Content-Type: application/json' \ --data ' { "email": "[email protected]", "roleId": 2 } '
Email address of the user to invite
"[email protected]"
Role ID to assign to the invited user
2