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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring
User-Agentstring

RESPONSES

status: OK

{&quot;membership_id&quot;:&quot;h52ngf31-68f0-5d8d-b88g-0ae69cec9984&quot;,&quot;organization_id&quot;:&quot;a11e6f29-6850-4d8d-b88d-0ae69cec1111&quot;,&quot;user_details&quot;:{&quot;email&quot;:&quot;john@email.com&quot;,&quot;first_name&quot;:&quot;John&quot;,&quot;last_name&quot;:&quot;Smith&quot;,&quot;phone_details&quot;:{&quot;phone_number&quot;:&quot;15555555555&quot;,&quot;country_code&quot;:&quot;1&quot;,&quot;subscriber_number&quot;:&quot;5555555555&quot;}},&quot;roles&quot;:[&quot;ROLE_ADMIN&quot;]}