updates lecture section attributes
PUT /api/v1/courses/:course_id/lectures/:id
Parameters
| Name |
Description |
|
course_id
|
couse id
|
|
id
|
id
|
|
id
|
id
|
|
course_id
|
course id
|
|
name
|
name
|
|
is_published
|
publically viewable?
|
|
attachments_attributes
|
attachments attributes
|
Request
Headers
Route
PUT /api/v1/courses/8/lectures/1
Body
{"name":"foo","attachments_attributes":[{"id":1,"position":15}]}
cURL
curl "http://localhost:3000/api/v1/courses/8/lectures/1" -d '{"name":"foo","attachments_attributes":[{"id":1,"position":15}]}' -X PUT \
-H "Accept: application/json" \
-H "X-Api-Token: Ec_svVWhXGh89zUkUZiLqEgssm6RrrHzhA" \
-H "X-Api-Email: user-13@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Status
204 No Content