PATCH/bots/{botId}
Bot を部分更新する。
入力していないパラメータは、既存の設定値を維持する。
allowDomains パラメータで Bot を利用範囲をドメイン単位で指定できる。
Bot 名、画像、説明文は多言語で登録できる。Bot 利用時はユーザーの言語設定に合わせて表示される。
トークルームへの参加形式を指定できる。
enableGroupJoin パラメータを設定して複数人のトークルームに招待できる。
メッセージ callback 受信サーバーを指定できる。
メッセージ受信サーバーは、HTTPS のみ指定できる。空の文字列を設定するとメッセージ受信サーバー情報が削除され callback を送信しない。
ユーザーが送信できるメッセージタイプは callbackEvents で指定する。
指定したメッセージタイプ以外の項目はグレーアウトし、ユーザーからは送信できない。
参照
- Bot はテナント単位で最大 300 個まで登録できる。
- Bot 名に改行文字を入れると空白として処理されされる。
- callbackUrl にはセキュリティ上の理由から自己署名された証明書は許可されない。
- 許可された認証機関のリストは CAリスト を参照。
注意
Access Token を指定します。
指定の方法や Access Token の取得方法は 共通仕様 を参照してください。
bot
| Parameter | Type | Description |
|---|---|---|
| botId | integer | Bot ID required example : 2000001 format : int64 |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
| Content-Type | string | application/json required example : application/json |
| Property | Type | Description |
|---|---|---|
| botName | string | Bot 名 required maxLength : 100 |
| photoUrl | string | Bot プロフィール画像の URL (PNG 形式, 640×640 サイズを推奨, HTTPS のみ可能) required maxLength : 1000 |
| description | string | Bot の説明 required maxLength : 100 |
| administrators | array (string) | Bot 担当者のユーザー ID リスト required minItems : 1 maxItems : 3 uniqueItems : true |
| subadministrators | array (string) | Bot 副担当者のユーザー ID リスト minItems : 0 maxItems : 3 uniqueItems : true |
| allowDomains | array (integer) | Bot が使用可能なドメインリスト minItems : 0 uniqueItems : true |
| enableCallback | boolean | Callback URL の利用フラグ default : false |
| channelEvents | array (string) | Callback 受信するトークルームイベントタイプ
default : message,join,leave,joined,left,postback minItems : 0 uniqueItems : true |
| callbackEvents | array (string) | ユーザーが送信可能なメッセージタイプ
minItems : 0 uniqueItems : true |
| callbackUrl | string | メッセージ受信サーバーの URL(HTTPS のみ) maxLength : 1000 |
| enableGroupJoin | boolean | トークルームへの招待形式
default : false |
| defaultRichmenuId | string | デフォルトリッチメニュー ID |
| i18nBotNames | array (i18nBotNames) | Bot の多国語名リスト minItems : 0 |
| i18nDescriptions | array (i18nDescriptions) | Bot の多国語説明リスト minItems : 0 |
| i18nPhotoUrls | array (i18nPhotoUrls) | Bot の多国語画像リスト minItems : 0 |
| Property | Type | Description |
|---|---|---|
| language | string | 多国語言語コード required Allowed values : ja_JP, ko_KR, en_US, zh_CN, zh_TW |
| botName | string | Bot名 required maxLength : 100 |
| Property | Type | Description |
|---|---|---|
| language | string | 多国語言語コード required Allowed values : ja_JP, ko_KR, en_US, zh_CN, zh_TW |
| description | string | Bot の説明 required maxLength : 100 |
| Property | Type | Description |
|---|---|---|
| language | string | 多国語言語コード required Allowed values : ja_JP, ko_KR, en_US, zh_CN, zh_TW |
| photoUrl | string | Bot のプロフィール画像が保存された URL required maxLength : 1000 |
example
1{2 "botName": "Example bot",3 "photoUrl": "https://example.com/favicon.png",4 "description": "WorksMobile's A.I. conversation enabled bot",5 "administrators": [6 "d191e339-3299-44e6-7a44-04d9cb01a5e0"7 ],8 "subadministrators": [9 "e417a131-a56d-44a4-5304-033e16fca8d1"10 ],11 "allowDomains": [12 1000000113 ],14 "enableCallback": true,15 "callbackEvents": [16 "text",17 "location",18 "sticker",19 "image",20 "file",21 "audio",22 "video"23 ],24 "channelEvents": [25 "message",26 "join",27 "leave",28 "joined",29 "left",30 "postback",31 "begin",32 "end"33 ],34 "callbackUrl": "https://example.com/callback",35 "enableGroupJoin": true,36 "defaultRichmenuId": "40001",37 "i18nBotNames": [38 {39 "language": "en_US",40 "botName": "Example bot"41 }42 ],43 "i18nDescriptions": [44 {45 "language": "en_US",46 "description": "Example description"47 }48 ],49 "i18nPhotoUrls": [50 {51 "language": "en_US",52 "photoUrl": "https://example.com/favicon.png"53 }54 ]55}OK
| Property | Type | Description |
|---|---|---|
| botId | integer | Bot ID format : int64 readOnly : true |
| botName | string | Bot 名 required maxLength : 100 |
| photoUrl | string | Bot プロフィール画像の URL (PNG 形式, 640×640 サイズを推奨, HTTPS のみ可能) required maxLength : 1000 |
| description | string | Bot の説明 required maxLength : 100 |
| administrators | array (string) | Bot 担当者のユーザー ID リスト required minItems : 1 maxItems : 3 uniqueItems : true |
| subadministrators | array (string) | Bot 副担当者のユーザー ID リスト minItems : 0 maxItems : 3 uniqueItems : true |
| allowDomains | array (integer) | Bot が使用可能なドメインリスト minItems : 0 uniqueItems : true |
| enableCallback | boolean | Callback URL の利用フラグ default : false |
| channelEvents | array (string) | Callback 受信するトークルームイベントタイプ
default : message,join,leave,joined,left,postback minItems : 0 uniqueItems : true |
| callbackEvents | array (string) | ユーザーが送信可能なメッセージタイプ
minItems : 0 uniqueItems : true |
| callbackUrl | string | メッセージ受信サーバーの URL(HTTPS のみ) maxLength : 1000 |
| enableGroupJoin | boolean | トークルームへの招待形式
default : false |
| defaultRichmenuId | string | デフォルトリッチメニュー ID |
| i18nBotNames | array (i18nBotNames) | Bot の多国語名リスト minItems : 0 |
| i18nDescriptions | array (i18nDescriptions) | Bot の多国語説明リスト minItems : 0 |
| i18nPhotoUrls | array (i18nPhotoUrls) | Bot の多国語画像リスト minItems : 0 |
| createdTime | string | Bot の作成日時 (YYYY-MM-DDThh:mm:ssTZD) format : date-time readOnly : true |
| modifiedTime | string | Bot の更新日時 (YYYY-MM-DDThh:mm:ssTZD) format : date-time readOnly : true |
| Property | Type | Description |
|---|---|---|
| language | string | 多国語言語コード required Allowed values : ja_JP, ko_KR, en_US, zh_CN, zh_TW |
| botName | string | Bot名 required maxLength : 100 |
| Property | Type | Description |
|---|---|---|
| language | string | 多国語言語コード required Allowed values : ja_JP, ko_KR, en_US, zh_CN, zh_TW |
| description | string | Bot の説明 required maxLength : 100 |
| Property | Type | Description |
|---|---|---|
| language | string | 多国語言語コード required Allowed values : ja_JP, ko_KR, en_US, zh_CN, zh_TW |
| photoUrl | string | Bot のプロフィール画像が保存された URL required maxLength : 1000 |
example
1{2 "botId": 2000001,3 "botName": "Example bot",4 "photoUrl": "https://example.com/favicon.png",5 "description": "WorksMobile's A.I. conversation enabled bot",6 "administrators": [7 "d191e339-3299-44e6-7a44-04d9cb01a5e0"8 ],9 "subadministrators": [10 "e417a131-a56d-44a4-5304-033e16fca8d1"11 ],12 "allowDomains": [13 1000000114 ],15 "enableCallback": true,16 "channelEvents": [17 "message",18 "join",19 "leave",20 "joined",21 "left",22 "postback",23 "begin",24 "end"25 ],26 "callbackEvents": [27 "text",28 "location",29 "sticker",30 "image",31 "file",32 "audio",33 "video"34 ],35 "callbackUrl": "https://example.com/callback",36 "createdTime": "2022-08-08T01:12:05+09:00",37 "modifiedTime": "2022-08-09T01:12:05+09:00",38 "enableGroupJoin": true,39 "defaultRichmenuId": "40001",40 "i18nBotNames": [41 {42 "language": "en_US",43 "botName": "Example bot"44 }45 ],46 "i18nDescriptions": [47 {48 "language": "en_US",49 "description": "Example description"50 }51 ],52 "i18nPhotoUrls": [53 {54 "language": "en_US",55 "photoUrl": "https://example.com/favicon.png"56 }57 ]58}