* Validation error text may vary depending on a source of an error
Description
This method is for removing avatar picture 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 “DeleteGroupAvatar” value | Type of request “DeleteGroupAvatar” |
groupId | true | String | groupId must be a valid UUID | String for specifying ID of group dialog for removal of avatar picture |
Sample request
{
"commands":[
{
"type":"DeleteGroupAvatar",
"groupId":"Uuid_value"
}
]
}
Updates
This method may asynchronously return following updates:
N/A
Possible business exceptions
Common context
- Removing group avatar isn't available if a group dialog wasn't found (deleted/ID error);
- Removing group avatar isn't available if service isn't a group owner/admin with permission to edit profile;