Skip to main content

write

Function write 

Source
pub fn write(
    project: &str,
    id: i32,
    mode: WriteMode,
    markdown: &str,
    options: SceneWriteOptions,
) -> Result<SceneWriteResult>
Expand description

Replace a scene’s text with markdown. Mode draft saves it as a new draft of the scene and leaves the scene alone. Mode live replaces the scene’s text, saving the old text as a draft first.

Needs scene.write or content:prose in the manifest’s [permissions].