method

LocalAPI.RestoreGlobalAsDraft

func (local *LocalAPI) RestoreGlobalAsDraft( ctx context.Context, slug string, revision, expectedRevision int, actor *store.Document, localeOptions ...LocaleOptions, ) (store.Document, error)

Restore a retained singleton revision while keeping it unpublished.

Source core/local.go:869

@param ctx
The ctx value.
@param slug
The slug value.
@param revision
The revision value.
@param expectedRevision
The expectedRevision value.
@param actor
The actor value.
@param localeOptions
The localeOptions value.
@returns
The declared result.

Related types

  • LocalAPI

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

  • Document

    A stored document with status and version metadata.

  • LocaleOptions

    Locale selection for one single-document Local API operation.