Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 986 Bytes

session_channel.create.md

File metadata and controls

48 lines (37 loc) · 986 Bytes

session_channel.create

创建一个临时讨论组。

请求方式

POST {base_url}/session_channel.create

请求参数

需要登录

参数名称 参数类型 参数是否必须? 说明 样例
name string 讨论组名称,可以包含 2 到 20 个英文字符或 1 到 10 个中文字符。允许使用数字、下划线 (_)、中线 (-) 和点。 吃喝玩乐在深圳
member_uids array 临时讨论组成员 id 列表 ["=bw52O", "=bw52P"]

响应

201

{
  "latest_ts": "1489242467694",
  "name": "临时讨论组名称",
  "is_member": true,
  "is_active": true,
  "type": "session",
  "member_uids": [
    "=bw52O"
  ],
  "vchannel_id": "=bw52O",
  "id": "=bw52O",
  "team_id": "=bw52O"
}

错误响应

{
  "code": // error code,
  "error": "unexpected error"
}