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