簡體   English   中英

有沒有更新和刪除Glip小組或小組的方法?

[英]Is there a way to update and delete a Glip team or group?

我可以使用chats API檢索一組團體/團隊或一個個人的列表,但是找不到如何更新或刪除一組團體或團隊的列表。

我成功使用的GET API包括:

獲取聊天列表

GET https://platform.ringcentral.com/restapi/v1.0/glip/chats

通過ID獲取聊天信息

GET https://platform.ringcentral.com/restapi/v1.0/glip/chats/{chatId}

但是,當我嘗試在聊天ID API端點上調用PATCHDELETE時,我收到404 有沒有辦法刪除Glip小組或小組?

chats是涵蓋小組和團隊的新端點,但是尚未在其上實現PATCHDELETE

更新團隊

要更新團隊,請使用舊teams端點。 teamId下面是一樣的chatId在所提供的id通過“獲取聊天列表” API返回的屬性。

僅支持以下主體參數。 使用您要更新的一個或多個。

PATCH https://platform.ringcentral.com/restapi/v1.0/glip/teams/{teamId}

{
  "public": true,
  "name": "My New Team Name",
  "description": "My Fancy Team"
}

成功的PATCH將返回帶有團隊屬性的JSON正文的200 OK響應。

刪除團隊

要刪除團隊,請使用舊teams端點。 teamId下面是一樣的chatId在所提供的id通過“獲取聊天列表” API返回的屬性。

DELETE https://platform.ringcentral.com/restapi/v1.0/glip/teams/{teamId}

成功的響應將導致204 No Content響應狀態代碼。

更新組

無法更新群組,因為它只是與多個參與者的聊天。

刪除群組

無法刪除GroupPrivateChat 嘗試這樣做會導致以下錯誤。 要刪除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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM