Skip to main content

Get Course Sections

This endpoint retrieves all sections (ordered and not paginated) for the course identified by {id}.

info

This operation requires authentication only if content_availability community option is false.

HTTP Request

GET /api/v2/course/{id}/section/

Parameters

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying this course

Example Request

const headers = {
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};

fetch('/api/v2/course/{id}/section/',
{
method: 'GET',

headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codelist(Course Section)