Групповые чаты
Изменить чат
Меняются только переданные поля. Поле users заменяет состав чата целиком, роли исключённых сотрудников удаляются. Если у пользователя ключа нет прав на изменение, возвращается 400.
put/api-v2/group-chats/{id}
Request
- Base URLhttps://api-docs.yougile.com (the document declares no server; this is the origin it was published from)
- AuthHTTP bearer
Path parameters
idstring required
Идентификатор чата
Request body
Example request
{
"title": "Бухгалтерия",
"users": {
"4902b994-b806-4af4-acec-018ea5ea6468": {
"notified": true
},
"8aeaeb9d-f94e-4c66-96d3-eb8d96fe7018": {
"notified": false
}
},
"userRoleMap": {
"4902b994-b806-4af4-acec-018ea5ea6468": "owner",
"8aeaeb9d-f94e-4c66-96d3-eb8d96fe7018": "admin"
},
"roleConfigMap": {
"admin": {
"editProperties": true,
"editAdmins": true,
"editUsers": true,
"sendMessages": true,
"removeMessages": true
},
"user": {
"editProperties": false,
"editAdmins": false,
"editUsers": true,
"sendMessages": true,
"removeMessages": false
}
}
}Response
Example response
{
"id": "4f6f0391-0f94-4d30-9b0e-99430a36d4fb"
}Changes
No recorded changes to this operation across all 4 revisions of this API.