DELETE - /api/v1/courses/:course_id/lectures/:lecture_id/attachments/:id - Deleting
DELETE /api/v1/courses/:course_id/lectures/:lecture_id/attachments/:id
Parameters
| Name |
Description |
|
id
|
id
|
|
course_id
|
id of the course
|
|
lecture_id
|
id of the lecture
|
|
downloadable
|
is it downloadable (doesn't apply to disqus or html attachments)
|
|
embeddable
|
is it embeddable (doesn't apply to disqus or html attachments)
|
Request
Headers
Route
DELETE /api/v1/courses/246/lectures/64/attachments/63
Body
{}
cURL
curl "http://localhost:3000/api/v1/courses/246/lectures/64/attachments/63" -d '{}' -X DELETE \
-H "Accept: application/json" \
-H "X-Api-Token: QMzTs2N3MxyRgzHcsjWMPt3x3s5xyZsXcQ" \
-H "X-Api-Email: user-529@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Status
204 No Content