* Validation error text may vary depending on a source of an error
Description
This method is for changing title of group dialog.
On succes empty response with http code 200 is returned.
Endpoint
https://messapi.btsdapps.net/bot/v1/updates/
Structure
Variable | Obligative | Type | Validation | Description |
---|---|---|---|---|
type | true | String | Must be filled with “ChangeGroupTitle” value | Type of request “ChangeGroupTitle” |
groupId | true | String | groupId must be a valid UUID | String for specifying ID of a group dialog to change title of |
title | true | String | - | String for specifying text of new group dialog title |
Sample request
{
"commands":[
{
"type":"ChangeGroupTitle",
"groupId":"Uuid_value",
"title":"New title"
}
]
}
Updates
This method may asynchronously return following updates:
N/A
Possible business exceptions
Common context
- Changing group title isn't available if a group dialog wasn't found (deleted/ID error);
- Changing group title isn't available if service isn't a group owner/admin with permission to edit profile;