Shorten User Subscription
If the user already has a premium access up to a certain time, this shortens/revokes his/her premium access. If the ends is less than or equal to the current time, it revokes the subscription and sets the end date to be the current time, else it just shortens the subscription.
Path parameters
handle
The document’s _id
or slug
.
Headers
Authorization
Basic authentication of the form Basic <username:password>.
Request
This endpoint expects an object.
ends
Response
This endpoint returns an object.
_id
email
name
slug
role
Usually either ‘teacher’ or ‘student’
stats
oAuthIdentities
subscription
license