method
LocalAPI.UpdateRevision
func (local *LocalAPI) UpdateRevision(
ctx context.Context,
collection,
id string,
values store.Values,
expectedRevision int,
actor *store.Document,
localeOptions ...LocaleOptions,
) (store.Document, error)Update with an optimistic current-revision fence.
Equivalent to UpdateWithOptions with ExpectedRevision set. A stale revision returns a conflict.
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.