Skip to main content
PUT
Replace subscriber tags

Авторизації

Authorization
string
header
обов'язково

API token from the Zenedu dashboard

Параметри шляху

bot
integer
обов'язково

Bot ID

student
integer
обов'язково

Subscriber ID

Тіло

application/json
tags
string[]
обов'язково

Complete list of tag names; pass an empty array to remove all tags

Maximum string length: 255

Відповідь

Updated subscriber

id
integer

Subscriber ID

user_id
integer

Telegram user ID

first_name
string

First name

last_name
string | null

Last name

username
string | null

Telegram username

phone
string | null

Phone number

email
string | null

Email address

notes
string | null

Notes about the subscriber

tags
string

Comma-separated list of tag names, empty string if none

is_active
boolean

Whether the subscriber is active

is_blocked
boolean

Whether the subscriber is blocked

last_active_at
string<date-time> | null

Last activity timestamp

created_at
string<date-time>

Subscription timestamp

utm_tags
object

UTM tags keyed by type

custom_fields
object

Custom field values keyed by field name