Skip to main content

Leave Course Or Remove Request

This endpoint allows users to leave the course identified by {id}. If the user didn't joined the course but has requested to join a course with private access then remove the request to join.

note

By passing the optional param user a course manager is able to remove the user from the course.

info

This operation requires authentication. It requires also that the user is a manager of the course if the user param is passed.

HTTP Request

DELETE /api/v2/course/{id}/join/

Parameters

NameInTypeRequiredDescription
idpathintegertrueA unique integer value identifying this course
userpathintegerfalseA unique integer value identifying the user to remove from the course

Example Request

const headers = {
'Content-Type':'application/x-www-form-urlencoded',
'Accept':'application/json',
'Authorization: Bearer <token>'
};
fetch('/api/v2/course/{id}/subscribe/',
{
method: 'DELETE',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
204No ContentResponse status codeNone