[英]Is there a way to update and delete a Glip team or group?
I can retrieve a list of groups/teams or an individual one by using the chats
API, but I cannot find how to update or delete a group or a team. 我可以使用
chats
API检索一组团体/团队或一个个人的列表,但是找不到如何更新或删除一组团体或团队的列表。
The GET
APIs I use successfully include: 我成功使用的
GET
API包括:
Get Chat List 获取聊天列表
GET https://platform.ringcentral.com/restapi/v1.0/glip/chats
Get Chat Info by ID 通过ID获取聊天信息
GET https://platform.ringcentral.com/restapi/v1.0/glip/chats/{chatId}
However, when I try to call PATCH
or DELETE
on the Chat ID API endpoint I receive a 404
. 但是,当我尝试在聊天ID API端点上调用
PATCH
或DELETE
时,我收到404
。 Is there a way to delete a Glip team or group? 有没有办法删除Glip小组或小组?
chats
is a new endpoint to cover both Groups and Teams, however PATCH
and DELETE
have not been implemented on it yet. chats
是涵盖小组和团队的新端点,但是尚未在其上实现PATCH
和DELETE
。
Update Team 更新团队
To update a team, use the old teams
endpoint. 要更新团队,请使用旧
teams
端点。 The teamId
below are the same as the chatId
provided in the id
property returned by the "Get Chat List" API. 该
teamId
下面是一样的chatId
在所提供的id
通过“获取聊天列表” API返回的属性。
Only the following body parameters are supported. 仅支持以下主体参数。 Use the one(s) you wish to update.
使用您要更新的一个或多个。
PATCH https://platform.ringcentral.com/restapi/v1.0/glip/teams/{teamId}
{
"public": true,
"name": "My New Team Name",
"description": "My Fancy Team"
}
A successful PATCH
will return a 200 OK
response with a JSON body of the team properties. 成功的
PATCH
将返回带有团队属性的JSON正文的200 OK
响应。
Delete Team 删除团队
To delete a team, use the old teams
endpoint. 要删除团队,请使用旧
teams
端点。 The teamId
below are the same as the chatId
provided in the id
property returned by the "Get Chat List" API. 该
teamId
下面是一样的chatId
在所提供的id
通过“获取聊天列表” API返回的属性。
DELETE https://platform.ringcentral.com/restapi/v1.0/glip/teams/{teamId}
A successful response will result in a 204 No Content
response status code. 成功的响应将导致
204 No Content
响应状态代码。
Update Group 更新组
There is no option to update a group as it is just a chat with multiple participants. 无法更新群组,因为它只是与多个参与者的聊天。
Delete Group 删除群组
It is not possible to delete a Group
or a PrivateChat
. 无法删除
Group
或PrivateChat
。 Attempting to do so will result in the error below. 尝试这样做会导致以下错误。 To delete a
Group
, convert it to a Team
first and then delete it. 要删除
Group
,请先将其转换为Team
,然后再将其删除。
HTTP 400 Bad Request
{
"errors": [
{
"errorCode": "CNV-001",
"message": "Conversation with type [Group] cannot be deleted."
}
]
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.