缩短用户许可

如果用户在一定时间内已经登陆“教室”版本,这将缩短或撤销他的权限。 如果结束比现在时间短或者和现在时间相同, 这将撤销登陆,并将结束时间设置为当前时间,否则这将缩短注册时间。

Path parameters

handlestringRequired

文件中的 _id 或者 slug.

Headers

AuthorizationstringRequired

Basic authentication of the form Basic <username:password>.

Request

This endpoint expects an object.
endsstringRequired

Response

This endpoint returns an object.
_idstring or null
emailstring or null
namestring or null
slugstring or null
rolestring or null

通常这是指"teacher"(“老师”)或者"student"(“学生”)

statsobject or null
oAuthIdentitieslist of objects or null
subscriptionobject or null
licenseobject or null