Skip to content
  • Auto
  • Light
  • Dark
Get Started

Modify

Modify a group
groups.modify(GroupModifyParams**kwargs) -> GroupModifyResponse
post/api/modify-group

Add or manage participants in a group chat (beta feature)

ParametersExpand Collapse
group_id: str

Group identifier

modify_type: Literal["add_recipient"]

Type of modification to perform

Accepts one of the following:
"add_recipient"
number: str

Phone number to add/modify in E.164 format

ReturnsExpand Collapse
class GroupModifyResponse:
message: Optional[str]
status: Optional[str]
Modify a group
from sendblue_api import SendblueAPI

client = SendblueAPI(
    api_key="My API Key",
    api_secret="My API Secret",
)
response = client.groups.modify(
    group_id="group_123456",
    modify_type="add_recipient",
    number="+19998887777",
)
print(response.message)
{
  "message": "Group modified successfully",
  "status": "OK"
}
Returns Examples
{
  "message": "Group modified successfully",
  "status": "OK"
}