Update a group
This PUT
operation updates group information by passing the id
in the URL and a JSON
request with the updated information. If successful, you receive an HTTP response code of 200
and a JSON
response outlining the updated information passed in the JSON request payload.
See HTTP response codes for other response codes. |
PUT /sqs/api/groups/<id>
+ JSON request payload
HEADER INFO
authorisation: HTTP Basic Auth
tenant: <tenantName>
content-type: application/JSON
accept: application/JSON
By default, accept is XML . You must explicitly set accept in your header to application/JSON to 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
This sample updates the group name
to CherokeeNation
.
You must include all of the key:value pairs shown below in order to update a group. |
{
"id": "By5li9cbFR53VLv6fh6z",
"ownerId": "967178860",
"name" : "CherokeeNation"
}
JSON response
The JSON
response includes the updated information passed in the JSON payload.
{
"created": "2020-01-20T13:43:01.000+0000",
"updated": "2020-01-20T13:43:01.000+0000",
"id": "By5li9cbFR53VLv6fh6z",
"ownerId": "967178860",
"name": "CherokeeNation"
}
SQS groups data type descriptions
Field | Type | Description | ||
---|---|---|---|---|
|
string |
The auto-assigned ID given to the group upon creation. |
||
|
string |
The ID given to the owner of the group (the creator). This is typicaly the MSISDN of the subscriber who created the group.
|
||
|
string |
The name of the group. This is currently auto-assigned upon group creation. |
||
|
string |
The date and time at which the group was created.
|
||
|
string |
The date and time at which the group was updated.
|
HTTP response codes
Code | Description | ||||
---|---|---|---|---|---|
|
success! |
||||
|
Multistatus response
|
||||
|
malformed request |
||||
|
unauthorised; bad username or password |
||||
|
forbidden; user does not have appropriate privileges |
||||
|
group 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 |