离开

POST api/v1/channel/members/leave

  • 说明:成员主动退出群组

  • Header

FieldTypeRemarks

ApiKey

String

从管理员获取的ApiKey

Authorization

String

Bearer ${unifiedAuthToken} ,其中unifiedAuthToken来自/api/v1/auth接口的返回

  • Request Parameters

FieldTypeRemarks

channelUuid

String

群组的uuid

  • Request Example

curl POST 'https://api.relationlabs.ai/api/v1/channel/members/remove' \
--header 'ApiKey: <ApiKey>' \
--header 'Authorization: bearer eyJhbGci1OiJFUzI1NiJ9.eyJqdGkiOiI0MzdiN2EzZDEwMGY0ODVkOWVhMWUz1ZmZlOWE1NmEyZSIsImlzcyI6InJlbGF0aW9ubGFicy5haSIsImlhdCI6MTY2NTIxNTUzNSwic3ViIjoiZGhreXEtc3FhYWEtYWFhYWotc2d6M3EtY2FpIiwiZXhwIjoxNjY1ODIwMzM1fQ.rj7KKuIcgmvaIwZ63YHnXQ4jvvI-eR2Wo7k3YE1yzMuxo8j5ezCowKDpcW0u9zIuHPFqwD0-1XPWdPLR1d1HLFw' \
--header 'Content-Type: application/json' \
--data-raw '{
    "channelUuid":"4f326124812c41448bc587bf6b2eaf42"
}'
  • Response Parameters

FieldTypeRemarks

code

String

返回码

desc

String

返回信息

data

Object

返回数据

  • Response Body

{
  "code": "0",
  "desc": "success",
  "data": null
}
  • Return Code

codedescRemarks

0

success

接口调用成功

13109

The current group type is not supported

当前操作仅支持type=G

Last updated