Skip to main content

move_draft

Function move_draft 

Source
pub async fn move_draft(
    configuration: &Configuration,
    workspace: &str,
    kind: &str,
    path: &str,
    move_draft_request: MoveDraftRequest,
) -> Result<String, Error<MoveDraftError>>
Expand description

Relocates the authed user’s own draft row, along with both path keys inside its value (the typed path and the mirror the editors keep beside it). Only for draft-only items — a deployed item must be moved through its own deploy endpoint, which carries every draft with it. Restricted to script, flow, app and raw_app; any other kind is rejected with 400, because only these keep their deploy target where this endpoint rewrites it.