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.
The GET APIs I use successfully include:
Get Chat List
GET https://platform.ringcentral.com/restapi/v1.0/glip/chats
Get Chat Info by 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. Is there a way to delete a Glip team or group?
chatsis a new endpoint to cover both Groups and Teams, howeverPATCHandDELETEhave not been implemented on it yet.Update Team
To update a team, use the old
teamsendpoint. TheteamIdbelow are the same as thechatIdprovided in theidproperty returned by the "Get Chat List" API.Only the following body parameters are supported. Use the one(s) you wish to update.
A successful
PATCHwill return a200 OKresponse with a JSON body of the team properties.Delete Team
To delete a team, use the old
teamsendpoint. TheteamIdbelow are the same as thechatIdprovided in theidproperty returned by the "Get Chat List" API.A successful response will result in a
204 No Contentresponse status code.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
Groupor aPrivateChat. Attempting to do so will result in the error below. To delete aGroup, convert it to aTeamfirst and then delete it.