Skip to main content

Patch Course Section

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

info

This operation requires the course manager role.

note

You can use this endpoint to edit a single field passing only the id and the needed field (without mandatory fields).

HTTP Request

PATCH /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
bodybodyCourse SectiontrueThe request body (course section params)

Example Body Parameters

{
"drip_delay": "integer"
}

Example Request

const inputBody = '{
"drip_delay": "integer"
}';
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: 'PATCH',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeCourse Section