Skip to main content

Get User Courses

This endpoint return the list of courses the user has status joined or manager (default).

If you want you can change the default statuses with an array of valid statuses or a single value.

eg: you can get all the courses created by the user ID with the following request:

/api/v2/user/ID/courses/?statuses=creator
info

Return only the courses that the current user can view.

info

This operation does not require authentication.

HTTP Request

GET /api/v2/user/{id}/courses/

Parameters

NameInTypeRequiredDescription
idpathintegertrueA unique integer value identifying this user
statusesquerylist(string)¦stringfalseFilter by join_status of the user identified by the id.
Default: ["manager", "joined"]

Example Request

const headers = {
'Accept':'application/json'
};

fetch('/api/v2/user/{id}/courses/',
{
method: 'GET',

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

Responses

StatusMeaningDescriptionSchema
200OKResponse status codelist(Course)