Skip to main content

Update Course Section

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

info

This operation requires the course manager role.

HTTP Request

PUT /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

| body | body | Course Section | true | The request body (course section params) |

Example Body Parameters

{
"name": "string",
"dripped_at": "string"
}

Example Request

const inputBody = '{
"name": "string",
"dripped_at": "string"
}';
const headers = {
'Content-Type':'application/x-www-form-urlencoded',
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};

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

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeCourse Section