Skip to main content

Delete a Course Section

This endpoint deletes a specific section for the course identified by {id}.

info

This operation requires the course manager role.

HTTP Request

DELETE /api/v2/course/{id}/section/{section_id}/

Parameters

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying this course
section_idpathstringtrueA unique integer value identifying this course section

Example Request

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


Responses

StatusMeaningDescriptionSchema
204No ContentResponse status codeNone