Add member to a group
This PUT operation adds as well as updates a member of a group by passing first the group’s ID then the memberId into the URL along with a JSON payload defining how much of the data quota of the group is to be shared with the member. If successful, you receive an HTTP response code of 201 and a JSON response outlining the information passed in the JSON request payload.
| The percentage of quota shared is expressed as an integer between 0and10000000.  So for example, 5% is 5/100 * 10000000 which equals500000which would be what you specify in the payload. When sharing with a group, the specified shared quota is the amount given to each member in the group. So, if you specify 10% of 1GB (100MB), each member gets this amount. | 
| See HTTP response codes for other response codes. | 
PUT /sqs/api/groups/<id>/members/<memberId> + JSON request payload
HEADER INFO
authorisation: HTTP Basic Auth
tenant: <tenantName>
content-type: application/JSON
accept: application/JSON
permissions: SQS_GROUP_CREATE_UPDATE_PERMISSION
URL parameters
| Parameter | Description | 
|---|---|
| 
 | The auto-assigned identifier that was given to the group upon creation. | 
| 
 | A unique identifier for the member. | 
JSON request payload
You must pass the memberId in the JSON payload as well as the URL plus the quota.
{
   "memberId":"678678",
   "quota":123456
}SQS members data type descriptions
| Field | Type | Description | ||
|---|---|---|---|---|
| 
 | string | The unique ID for the member. This is typically the MSISDN of the subscriber. 
 | ||
| 
 | integer | The quota amount shared with the specified group member. This can be an exact amount or most often, a percentage of the donor plan. 
 | 
 
JSON response
The JSON response includes the information passed in the JSON payload as confirmation.
{
   "memberId":"678678",
   "quota":123456
}HTTP response codes
| Code | Description | ||||
|---|---|---|---|---|---|
| 
 | success! 
 | ||||
| 
 | Multistatus response 
 
 | ||||
| 
 | malformed request | ||||
| 
 | unauthorised; bad username or password | ||||
| 
 | forbidden; user does not have appropriate privileges | ||||
| 
 | group member not found | ||||
| 
 | conflict with target resource 
 
 | ||||
| 
 | failed validation; this typically means that a property was not set or a value is out of range. example  | ||||
| 
 | failed processing (after passing validation). example Example 1. SQS response codes 
 | ||||
| 
 | internal error | ||||
| 
 | request rejected due to overload |