βž•Creating Participants

This step shows the method to add one or more users as participants in a session with Groups API.

triangle-exclamation

Using Groups API, there are two ways to create participants for a session:

Adding a user to the session

triangle-exclamation

Available parameters:

Parameter
Type
Required
Default
Description

user_id

string

Yes

n/a

GUID of the user that will be added to the session as a participant

role

string

No

User's role. See information Hint below

Role of the participant(see)

circle-info

If the role parameter is not sent, the user will be added to the session with the role she has. Sending the parameter with a non null value will override this.

For example:

  • User with ID: a4cfd141-ea72-42e1-9b9b-d325ca3b255f has role 'e'

  • Try add user to session with payload:

{
    "user_id": "a4cfd141-ea72-42e1-9b9b-d325ca3b255f"
}
  • Attendee will be added with role 'e'

Example Payload:


circle-info

Using the same calls, you can make a batch operation for adding attendees to a session, which will significantly reduce overhead by making a request for each attendee to add.

Example payload for batch operation:

Example Response:

triangle-exclamation

πŸ”΄ You will see two objects as approved and rejected in the response, you can see their details below:

  • approved:

    • Lists the records successfully added from the users.

  • rejected:

    • Lists the records that cannot be added from users.

Example Response:

Last updated

Was this helpful?