cURL
curl --request PUT \ --url https://api.botpress.cloud/v1/admin/bots/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-workspace-id: <api-key>' \ --data '{ "url": "<string>", "authentication": "iam", "configuration": { "data": {}, "schema": {} }, "tags": {}, "blocked": true, "alwaysAlive": true, "user": { "tags": {} }, "message": { "tags": {} }, "conversation": { "tags": {} }, "events": {}, "actions": {}, "states": {}, "recurringEvents": {}, "integrations": {}, "subscriptions": { "events": {} }, "code": "<string>", "name": "<string>", "medias": [ { "url": "<string>", "name": "<string>" } ] }'
{ "bot": { "id": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "signingSecret": "<string>", "integrations": {}, "user": { "tags": {} }, "conversation": { "tags": {} }, "message": { "tags": {} }, "states": {}, "configuration": { "data": {}, "schema": {} }, "events": {}, "recurringEvents": {}, "subscriptions": { "events": {} }, "actions": {}, "tags": {}, "name": "<string>", "deployedAt": "2023-11-07T05:31:56Z", "dev": true, "createdBy": "<string>", "alwaysAlive": true, "status": "active", "medias": [ { "url": "<string>", "name": "<string>" } ] } }
Update bot
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Your workspace ID.
Bot ID
Bot metadata
URL of the Bot; Only available for dev bots
Type of the Bot authentication (iam)
iam
Show child attributes
Tags of the Bot
Indicates whether the Bot should be in always alive mode
JavaScript code of the bot
Optional name for the bot, if not provided will be auto-generated
1
Media files associated with the Bot
Success
Was this page helpful?