Invite new user

Params

Param name Description
datonis_role_key
required

Key of datonis role to be assigned to user


Value: Must be a String
user
required

Map containing details of the user to be invited


Value: Must be a Hash
pretty
optional

Return a pretty formatted response if true, Default is false


Value: Must be a Boolean
is_oem
optional

Invite user in child account by oem user if is_oem flag is true.


Value: Must be a Boolean
child_organisation_key
optional

Organisation key of child account where oem user wants to invite user. Required field if is_oem is present.


Value: Must be a String

Examples

Request
  curl -X POST -H "Content-Type:application/json" -H "X-Auth-Token:D--gyhhE-FPH5LXL3osGAQ" -d '{"user":{"first_name":"Jack", "last_name":"Timberly", "email":"jack@yahoo.com"},"role_key":"67e37d7bat"}' https://api.datonis.io/api/v3/users/invite

Response
Invitation sent successfully