Add Participants to an existing Group
This adds participants to an existing group.
Url:
https://ongair.im/api/v1/base/groups/{id}/add_participants
Method:
POST
Params:
Field | Type | Mandatory | Format | Meaning |
---|---|---|---|---|
id | Integer | Yes | Utf8 only encoded strings | The group id as returned from the group created call |
Members | Array | Yes | Utf8 only encoded strings | The phone number of the members to be added to the group |
Response:
The server responds with a JSON message:
{"added": true }
Error:
If there is an error, the server returns an error message and response code of 422.
{"error":"Group with the name ‘test’ already exists"}