method

LocalAPI.RestoreGlobalVersionWithOptions

func (local *LocalAPI) RestoreGlobalVersionWithOptions( ctx context.Context, slug string, revision int, draft bool, options MutationOptions, ) (store.Document, error)

Restore a retained singleton revision with explicit draft, identity, concurrency, and response controls.

Source core/local.go:873

@param ctx
The ctx value.
@param slug
The slug value.
@param revision
The revision value.
@param draft
The draft value.
@param options
The options value.
@returns
The declared result.

Related types

  • LocalAPI

    In-process content operations that share the REST authorization and lifecycle pipeline.

  • MutationOptions

    Authorization, optimistic concurrency, response population, create status, and locale controls for one write.

  • Document

    A stored document with status and version metadata.