method
LocalAPI.PublishChanges
func (local *LocalAPI) PublishChanges(
ctx context.Context,
collection,
id string,
values store.Values,
expectedRevision int,
actor *store.Document,
localeOptions ...LocaleOptions,
) (store.Document, error)Atomically apply field changes and publish the resulting versioned document through the publish lifecycle.
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.