Skip to main content
POST
Add a tag

Авторизации

Authorization
string
header
обязательно

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

Тело

application/json
chat_id
integer
обязательно

Chat to tag user in

user_id
integer
обязательно

User to tag

tag
string
обязательно

Tag label

bot_id
integer

Bot ID (for permission check)

username
string

Username at time of tagging

color
string

Tag color

Ответ

Tag created

id
integer

Tag record ID

chat_id
integer

Chat this tag belongs to

user_id
integer

User this tag is assigned to

username
string

Username at time of tagging

tag
string

Tag label text

color
string

Tag color (hex or CSS color name)

created_at
string<date-time>

When the tag was created