Repaints a built lesson in a design and saves it, keeping every slide's layout: use it for a colour or logo change. Synchronous, with no model call. A font or template change lays text out again, so it goes through …/lesson/rebuild.
The body is the build's templateId and design, checked as for a build (the same 400 and 409 codes, the logo included), and an optional slideIndexes that narrows the repaint; without it every slide is repainted. Each repainted slide takes the colours, and the logo or no logo, a build in the design gives its layout, whatever colours it holds now; nothing moves. An object added in Elai's editor keeps its colours. A slide not built on a template is skipped, and so is one built on a layout the template no longer has (layout_missing in warnings) or draws with other objects since a re-import (layout_changed); only a rebuild of such a slide brings it in step. Repainted slides are marked for render; the others keep their render status, and so does a slide that already wears the design, so a repeated restyle writes and re-renders nothing.
Refused with 400: a chosen slide built on another template (code: template_changed), a lesson no slide of which was built on a template (not_a_template_lesson), and fonts other than the ones the slides were built in (fonts_changed, naming those slides in slideIndexes). The template's own fonts sent by name are the same as none; leaving design.fonts out on a lesson built in brand fonts is a change back to the template's. Restyle changes no font, so one changed by hand in Elai's editor stays. Refused with 409 while the video renders (code: video_rendering), while a build or rebuild runs on it (code: lesson_task_running), or when the video changed while it was restyled (code: video_changed): nothing is saved then, and the restyle can be sent again. Each repainted slide records the design's hash, which …/lesson/design answers.
The video belongs to another workspace, or the caller's role cannot edit videos.
404
No video with that id in this workspace.
409
The video is rendering (code: video_rendering), a build or rebuild runs on it (code: lesson_task_running), it changed while it was restyled (code: video_changed, nothing saved), or the design was computed for a revision of the template this environment does not hold (code: template_revision_changed).
Updated about 1 hour ago
Did this page help you?
Yes
No
Language
ShellNodeRubyPHPPython
Credentials
Header
Header
Loading…
Response
Click Try It! to start a request and see the response here! Or choose an example: