Change the name, summary or cover of a lesson
PATCH
/apps/{appId}/courses/{courseId}/lessons/{lessonId}
const url = 'https://api.passion.io/v1/apps/example/courses/example/lessons/example';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","summary":"example","coverFileId":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.passion.io/v1/apps/example/courses/example/lessons/example \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "summary": "example", "coverFileId": "example" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”appId
required
The id of the App, as Studio shows it.
string
courseId
required
The id of a course, as list_courses lists it.
string
lessonId
required
The id of a lesson, as get_course or create_lesson answers it.
string
Request Body
Section titled “Request Body”Media typeapplication/json
object
name
The new name of the lesson.
string
summary
The new summary of the lesson.
string
coverFileId
An uploaded image that becomes the cover of the lesson.
string
Examplegenerated
{ "name": "example", "summary": "example", "coverFileId": "example"}Responses
Section titled “Responses”OK