Skip to main content
POST
Update a route

Authorizations

Authorization
string
header
required

API key with bmx_ prefix. Obtain via /api/auth/api-keys.

Body

application/json
source_bot_id
integer
required

Source bot ID

target_bot_id
integer
required

Target bot ID

action
string
required

Routing action

id
integer
required

Route ID to update

condition_type
string

Condition type (chat_id, user_id, keyword, all)

condition_value
string

Value for the condition

target_chat_id
integer

Target chat ID

enabled
boolean
default:true

Start enabled

description
string

Human-readable description

Response

Route updated

id
integer

Route ID

source_bot_id
integer

Source bot that receives messages

target_bot_id
integer

Target bot that forwards messages

condition_type
string

Condition to match (e.g., chat_id, user_id, keyword, all)

condition_value
string

Value to match for the condition

action
string

Action to take (forward, copy, etc.)

target_chat_id
integer

Target chat to route messages to

enabled
boolean

Whether this route is active

description
string

Human-readable description of this route