Rename a connection, or pause and resume it
const url = 'https://api.global.stillbox.example/v1/connections/conn-7k2m9q4x8w3z5r6t';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","enabled":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.global.stillbox.example/v1/connections/conn-7k2m9q4x8w3z5r6t \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "enabled": true }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Example generated
{ "name": "example", "enabled": true}Responses
Section titled “Responses”The connection
object
The bot’s username, the Slack workspace, or the WhatsApp number.
Telegram and WhatsApp. Opening it lets a chat talk to the agent; share it only with people who may.
Discord and Teams. Sent in a channel or chat with the bot, it lets that chat talk to the agent.
Discord. Adds the bot to a server, with the permissions to read and answer messages.
WhatsApp, Teams and webhook. Where messages are posted (Teams’ messaging endpoint); empty until the region has a public address.
WhatsApp: the webhook’s verify token.
Webhook: the bearer secret, which also signs replies. Shown only when the connection is created.
object
The chat on its platform (a Telegram chat, a Slack channel and thread, a WhatsApp number).
The person who connected it.
Example
{ "kind": "telegram", "state": "connecting"}The request is invalid
object
Example
{ "code": "not_found"}The API key is missing or invalid
object
Example
{ "code": "not_found"}No such sandbox in your organization (or no such file)
object
Example
{ "code": "not_found"}