Skip to main content
POST
/
api
/
admins
/
title
Set admin title
curl --request POST \
  --url http://localhost:8080/api/admins/title \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "bot_id": 1,
  "chat_id": -100123456789,
  "user_id": 987654321,
  "title": "Moderator"
}
'
{
  "ok": true
}

Authorizations

Authorization
string
header
required

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

Body

application/json
bot_id
integer
required
chat_id
integer
required
user_id
integer
required
title
string
required

Custom admin title (max 16 characters)

Response

Title set

ok
boolean
Example:

true