POST/bots/{botId}/domains/{domainId}/members

Allows a user in a bot's domain to use the bot.

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

Authorization

oauth2

OAuth 2.0 authentication.
For more information, see Authentication and Authorization.

Scope

bot

HTTP Request

POSThttps://www.worksapis.com/v1.0/bots/{botId}/domains/{domainId}/members

Path Parameters

ParameterTypeDescription
botId integer 

Bot ID


required
example : 2000001
format : int64 
domainId integer 

Domain ID


required
example : 10000001
format : int64 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Request Body

PropertyTypeDescription
userId string 

ID to identify users

  • User ID (userId)
  • Login ID (email)

required 

Request Example

example

1{2  "userId": "d191e339-3299-44e6-7a44-04d9cb01a5e0"3}

Response

HTTP 201

OK