Skip to main content

Ban a student by UID or login

Ban a student by UID or by login. If no date is provided, the student will be unbanned.

Path Parameters
id string REQUIRED

The UID or login of the student

Request Body REQUIRED
banUntil string

The date until the student is banned

reason string

The reason of the ban

Responses
200

Successful response

Schema OPTIONAL
groups string[]

Possible values: [ADMIN, YAKA, ING1_LYON, ING1_PARIS, ING1_RENNES, ING1_STRASBOURG, ING1_TOULOUSE]

uid number
login string
avatarURL string
quote string
currentRoomSlug string
banUntil date-time
401

Unauthorized

Schema OPTIONAL
code string OPTIONAL
message string OPTIONAL
403

Forbidden

Schema OPTIONAL
code string OPTIONAL
message string OPTIONAL
429

Too Many Requests

Schema OPTIONAL
code string OPTIONAL
message string OPTIONAL
500

Internal Server Error

Schema OPTIONAL
code string OPTIONAL
message string OPTIONAL