method

LocalAPI.RestoreGlobal

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

Restore a retained singleton revision as the current published value.

Source core/local.go:864

@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.