method

LocalAPI.UnpublishGlobal

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

Move one authorized versioned singleton back to draft.

Source core/local.go:823

@param ctx
The ctx value.
@param slug
The slug 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.