Add or update multiple group members
This PUT operation adds or updates multiple group members by passing the group ID into the URL along with a JSON payload defining how which members to add or update and how much of the data quota of the group is to be shared with the member.
| The operation is atomic which means either all supplied members are added/updated or none. If a member in the request already exists, the member’s quota is updated. Members not in the request stay as they are. If you want to do a bulk removal of group members, see bulk delete group members. | 
PUT /sqs/api/groups/<id>/members/_bulk/add + JSON request payload
HEADER INFO
authorisation: HTTP Basic Auth
tenant: <tenantName>
content-type: application/JSON
accept: application/JSON
| By default, acceptisXML. You must explicitly set accept in your header toapplication/JSONto receive a JSON response. | 
permissions: SQS_GROUP_CREATE_UPDATE_PERMISSION
URL parameters
| Parameter | Description | 
|---|---|
| 
 | The auto-assigned identifier that was given to the group upon creation. | 
JSON request payload
You must pass an array of members to be added or updated and the memberId in the JSON payload as well as the URL plus the quota.
| 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. | 
{
  "members" : [
    {
      "memberId" : "123123",
      "quota" : 45678
    },
    {
      "memberId" : "234234",
      "quota" : 667788
    },
    {
      "memberId" : "556677",
      "quota" : 34322
    }
  ]
} 
JSON response
The JSON response includes the information passed in the JSON payload as confirmation.
{
  "members" : [
    {
      "memberId" : "123123",
      "quota" : 45678
    },
    {
      "memberId" : "234234",
      "quota" : 667788
    },
    {
      "memberId" : "556677",
      "quota" : 34322
    }
  ]
}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. 
 
 | 
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 |