method
LocalAPI.UpdateGlobal
func (local *LocalAPI) UpdateGlobal(
ctx context.Context,
slug string,
values store.Values,
expectedRevision int,
actor *store.Document,
localeOptions ...LocaleOptions,
) (store.Document, error)Create or update one singleton.
The first singleton update cannot be authorized by a filtered Where decision because no persisted row exists; it requires Allow. UpdateGlobalWithOptions provides complete controls.
Related types
LocalAPIIn-process content operations that share the REST authorization and lifecycle pipeline.
ValuesA map of field names to typed values.
DocumentA stored document with status and version metadata.
LocaleOptionsLocale selection for one single-document Local API operation.