Groups
Replace a group
The replace operation will replace all parameters, including members, of an existing group with new values.
Replacing a group targeted by a batch message scheduled in the future is allowed and changes will be reflected when the batch is sent.
put/xms/v1/{service_plan_id}/groups/{group_id}
Request body
Example request
{
"id": "01FC66621VHDBN119Z8PMV1QPQ",
"name": "My new customers",
"size": 2,
"child_groups": [
"01FC66621VHDBN119Z8PMV1AHY"
],
"auto_update": {
"to": "+15551231234",
"add": {
"first_word": "Sinch",
"second_word": "JOIN"
},
"remove": {
"first_word": "LEAVE"
}
},
"members": [
"+15551231234",
"+15551256344"
]
}Example response
{
"id": "01FC66621VHDBN119Z8PMV1QPQ",
"name": "My new customers",
"size": 2,
"child_groups": [
"01FC66621VHDBN119Z8PMV1AHY"
],
"auto_update": {
"to": "+15551231234",
"add": {
"first_word": "Sinch",
"second_word": "JOIN"
},
"remove": {
"first_word": "LEAVE"
}
}
}