Delete a Course Section
This endpoint deletes a specific section for the course identified by {id}.
info
This operation requires the course creator or manager role.
HTTP Request
DELETE /api/v2/course/{id}/section/{section_id}/
Parameters
| Name | In | Type | Required | Description | 
|---|---|---|---|---|
| id | path | string | true | A unique integer value identifying this course | 
| section_id | path | string | true | A unique integer value identifying this course section | 
Example Request
- JavaScript
 - Bash
 
const headers = {
  'Content-Type':'application/x-www-form-urlencoded',
  'Accept':'application/json',
  'Authorization: Bearer <token>'
};
fetch('/api/v2/course/{id}/section/{section_id}/',
{
  method: 'DELETE',
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
# You can also use wget
curl -X DELETE /api/v2/course/{id}/section/{section_id}/
  -H "Authorization: Bearer <token>"
Responses
| Status | Meaning | Description | Schema | 
|---|---|---|---|
| 204 | No Content | Response status code | None |