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.

Source core/local.go:401

@param ctx
Request context.
@param collection
Authored collection slug.
@param id
Document ID.
@param values
Partial submitted field values.
@param actor
Authenticated actor, or nil.
@param localeOptions
Optional locale selection.
@returns
The authorized updated document, or an operation error.

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.