Invite to community

In order to invite a client with email to community, you can send a POST request like below:

POST /community/[community_id]/member HTTP/1.1
Authorization: Bearer [access_token]
Accept: application/json
Content-Type: application/json; charset=utf-8
{
  "email": [invited_email],
  "theirRole": [invited_role_id],
  "firstname": "invited_firstname",
  "lastname": [invited_lastname],
  "group": [group_id]
}

If the request success the response would be

HTTP/1.1 201 Created
Content-Type: application/json; charset=utf-8
{
  "id": [invitation_id],
  "timeCreated": [time_created],
}

Invite to community with one-to-one connection In order to invite a client to community with one-to-one connection, you can send a POST request like below:

POST /community/[community_id]/member HTTP/1.1
Authorization: Bearer [access_token]
Accept: application/json
Content-Type: application/json; charset=utf-8
{
  "userId": [inviting_user_id],
  "yourRole": [inviting_role_id],
  "email": [invited_email],
  "theirRole": [invited_role_id],
  "firstname": "invited_firstname",
  "lastname": [invited_lastname],
  "group": [group_id]
}

If the request success the response would be:

HTTP/1.1 201 Created
Content-Type: application/json; charset=utf-8
{
  "id": [invitation_id],
  "timeCreated": [time_created],
}