Skip to main content
PATCH
Update subscriber

Авторизації

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

API token from the Zenedu dashboard

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

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

Bot ID

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

Subscriber ID

Тіло

application/json
first_name
string

First name, cannot be empty

Maximum string length: 255
last_name
string | null

Last name

Maximum string length: 255
email
string | null

Email address

Maximum string length: 255
phone
string | null

Phone number

Maximum string length: 255
notes
string | null

Notes about the subscriber

Maximum string length: 65535

Відповідь

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