Skip to main content

transfer_drafts

Function transfer_drafts 

Source
pub async fn transfer_drafts(
    configuration: &Configuration,
    workspace: &str,
    transfer_drafts_request: TransferDraftsRequest,
) -> Result<TransferDrafts200Response, Error<TransferDraftsError>>
Expand description

In one transaction, copies the authed user’s own drafts of items into target_workspace (another workspace of this one’s family, with the same root through parent_workspace_id) and, with remove_from_source, deletes them here. Without target_workspace it only removes. If the user already has a draft of any item in the target, nothing is written and the items are returned in conflicts, unless replace_existing is set. A user who can only compose flows or apps in the target is held to the same rules as a direct draft save there.