Invite New User to Organization
POST {{baseUrl}}/direct/organizations/:customer_id/memberships/invite
Create a new membership in the given organization. The new user will receive an invitation at the e-mail address specified.
Request Body
{"roles"=>["ROLE_ADMIN", "ROLE_EMPLOYEE"], "user_details"=>{"email"=>"<string>", "first_name"=>"<string>", "last_name"=>"<string>", "phone_details"=>{"phone_number"=>"<string>", "country_code"=>"<string>", "subscriber_number"=>"<string>"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string | ||
User-Agent | string |
RESPONSES
status: OK
{"membership_id":"h52ngf31-68f0-5d8d-b88g-0ae69cec9984","organization_id":"a11e6f29-6850-4d8d-b88d-0ae69cec1111","user_details":{"email":"john@email.com","first_name":"John","last_name":"Smith","phone_details":{"phone_number":"15555555555","country_code":"1","subscriber_number":"5555555555"}},"roles":["ROLE_ADMIN"]}