updateBot
Update bot
PUT
/v1/admin/bots/{id}Authorization
AuthorizationBearerrequiredBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Header parameters
x-workspace-idstringrequiredWorkspace ID
x-multiple-integrationsstringWhether the client supports bots with multiple instances of the same integration. Set to "true" to receive integration instances keyed by their alias instead of their id. This header will be removed in the future, and the API will always return multiple instances keyed by alias.
Path parameters
idstringrequiredBot ID
Request body
Bot metadata
urlstring | nullURL of the Bot
authenticationenum<string>Type of the Bot authentication (`iam` or `hmac-sha256`)
Available options:
"iam","hmac-sha256"configurationobjecttagsobjectOptional attributes of the Bot
blockedbooleanmaxExecutionTimeintegerMaximum execution time (in seconds).
alwaysAlivebooleanIndicates if the Bot should be in always alive mode
userobjectmessageobjectconversationobjecteventsobjectactionsobjectstatesobjectrecurringEventsobjectintegrationsobjectpluginsobjectA mapping of plugin aliases to their configuration
subscriptionsobjectcodestringJavaScript code of the bot
namestringOptional name for the bot, if not provided will be auto-generated(min length: 1)
descriptionstringOptional description for the bot(max length: 2000)
mediasobject[]Media files associated with the Bot
secretsobjectSecrets are values available in the code via environment variables formatted with a SECRET_ prefix followed by your secret name. A secret name must respect SCREAMING_SNAKE casing.
layersstring[]shouldMergePluginsbooleanUNUSED. Please ignore this field. It will be removed in the near future.
typeenum<string>Type of the Bot
Available options:
"studio","adk","desk"Response
Success
botobjectrequired