Перейти к основному содержанию
PATCH

Авторизации

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

API token from the Zenedu dashboard

Параметры пути

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

Bot ID

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

Subscription ID

Тело

application/json

Pass exactly one of renewal_date or days.

renewal_date
string<date-time>

New next payment date (ISO 8601; a timezone offset is converted to UTC, a date without an offset is read as UTC). Must be in the future and no later than 3650 days from now.

days
integer

Number of days to move the next payment date forward from the current one

Требуемый диапазон: 1 <= x <= 3650

Ответ

Subscription with the new payment date in expired_at

data
object