method
LocalAPI.Update
func (local *LocalAPI) Update(
ctx context.Context,
collection,
id string,
values store.Values,
actor *store.Document,
localeOptions ...LocaleOptions,
) (store.Document, error)Apply partial values to one authorized document.
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.