Skip to main content

Invite Users Or Accept Users

This endpoint allows user managers to invite or accept users to the course

info

This operation requires the course manager role.

HTTP Request

POST /api/v2/course/{id}/invite/

Parameters

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying this course
usersbodylist(integer)trueList of id of User to invite or to accept

Example Request

const inputBody = '{
"users": ["integer"]
}';
const headers = {
'Content-Type':'application/x-www-form-urlencoded',
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};

fetch('/api/v2/course/{id}/invite/',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
204No ContentResponse status codeNone