Skip to main content
PATCH

Authorizations

Authorization
string
header
required

API token from the Zenedu dashboard

Path Parameters

bot
integer
required

Bot ID

subscription
integer
required

Subscription ID

Body

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

Required range: 1 <= x <= 3650

Response

Subscription with the new payment date in expired_at

data
object