POST/bots/{botId}/secret

Reissues a bot's secret.

Caution

  • Once this API operation is called, the previous secret is no longer available.

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}/secret

Path Parameters

ParameterTypeDescription
botId integer 

Bot ID


required
example : 2000001
format : int64 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Response

HTTP 200

OK

PropertyTypeDescription
secret string 

Bot Secret


required 

Response Example

example

1{2  "secret": "12345a12-b12c-12d3-e123fghijkl"3}