method

LocalAPI.PublishGlobalChanges

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

Atomically apply singleton field changes and publish through the global publish lifecycle.

Source core/local.go:809

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

  • Values

    A map of field names to typed values.

  • Document

    A stored document with status and version metadata.

  • LocaleOptions

    Locale selection for one single-document Local API operation.