POST/bots/{botId}/channels

봇이 포함된 메시지방을 생성한다.
생성 후 반환된 메시지방 ID로 메시지를 전송하거나 봇이 포함된 메시지방의 구성원 목록을 조회할 수 있다.

Authorization

oauth2

OAuth 2.0 인증.
자세한 인증 방식은 인가·인증을 참고한다.

Scope

bot.message
bot

HTTP Request

POSThttps://www.worksapis.com/v1.0/bots/{botId}/channels

Path Parameters

ParameterTypeDescription
botId integer 

봇 ID


required
example : 2000001
format : int64 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 
Content-Type string 

application/json


required
example : application/json 

Request Body

PropertyTypeDescription
members array (string) 

메시지방에 초대할 구성원 목록


required
minItems : 1
maxItems : 100
uniqueItems : true 
title string 

메시지방 이름


maxLength : 1000 

Request Example

example

1{2  "members": [3    "d191e339-3299-44e6-7a44-04d9cb01a5e0"4  ],5  "title": "Example title"6}

Response

HTTP 201

OK

PropertyTypeDescription
channelId string 

메시지방 ID


required 
title string 

메시지방 이름


maxLength : 1000 

Response Example

example

1{2  "channelId": "12345a12-b12c-12d3-e123fghijkl",3  "title": "Example title"4}