Delete multiple members from a group
This PUT
operation removes group members in bulk (multiple) from a specific group by passing first the group’s ID into the URL. If successful, you receive an HTTP response code of 204
.
The operation is atomic. Either all supplied members are deleted or none. |
PUT /sqs/api/groups/<id>/members/_bulk/delete
HEADER INFO
authorisation: HTTP Basic Auth
tenant: <tenantName>
permissions: SQS_GROUP_DELETE_PERMISSION
URL parameters
Parameter | Description |
---|---|
|
The auto-assigned identifier that was given to the group upon creation. |
JSON request payload
In the JSON payload, specify (in an array) the group members you wish to remove from the group.
Subscribers specified in the list who aren’t group members are ignored. |
{
"members" : ["12345", "23456"]
}
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 |