Individual attachments on a lecture API

PUT - /api/v1/courses/:course_id/lectures/:lecture_id/attachments/:id

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

Accept: application/json
X-Api-Token: KC_Uxqp5tuDsUyTfqLLvUxXwyyr5ns-Vig
X-Api-Email: user-523@example.com

Route

PUT /api/v1/courses/244/lectures/62/attachments/61

Body

{}

cURL

curl "http://localhost:3000/api/v1/courses/244/lectures/62/attachments/61" -d '{}' -X PUT \
	-H "Accept: application/json" \
	-H "X-Api-Token: KC_Uxqp5tuDsUyTfqLLvUxXwyyr5ns-Vig" \
	-H "X-Api-Email: user-523@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Status

204 No Content