POST/bots/{botId}/domains/{domainId}
Adds a bot's domain information.
The domain to be added must be specified in the scope of domains for the bot using the "Add a bot" API operation.
A bot can be public or private in the domain.
A public bot is shown on the client's bot list from which users can invite the bot to their chats.
Caution
- Users will be notified if a bot is added to a domain under Service > Bot in the LINE WORKS Admin, but they will not if a bot domain is added using the API.
- The following API operations must not be called as parallel for same bot. Add, Update, Partially update, Delete, Add a domain, Update a domain, Partially update a domain, Delete a domain, Add a bot user, Delete a bot user
OAuth 2.0 authentication.
For more information, see Authentication and Authorization.
bot
| Parameter | Type | Description |
|---|---|---|
| botId | integer | Bot ID required example : 2000001 format : int64 |
| domainId | integer | Domain ID required example : 10000001 format : int64 |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
| Content-Type | string | application/json required example : application/json |
| Property | Type | Description |
|---|---|---|
| visible | boolean | Indicates whether to make the bot visible on the customer's organization chart. default : false |
| allowToSelectedMember | boolean | Indicates whether to allow only specified members to use the bot. default : false |
example
1{2 "visible": true,3 "allowToSelectedMember": true4}OK
| Property | Type | Description |
|---|---|---|
| domainId | integer | Domain ID format : int64 readOnly : true |
| visible | boolean | Indicates whether to make the bot visible on the customer's organization chart. default : false |
| allowToSelectedMember | boolean | Indicates whether to allow only specified members to use the bot. default : false |
example
1{2 "domainId": 10000001,3 "visible": true,4 "allowToSelectedMember": true5}