method

LocalAPI.DuplicateWithOptions

func (local *LocalAPI) DuplicateWithOptions( ctx context.Context, collection, id string, overrides store.Values, options MutationOptions, ) (store.Document, error)

Duplicate a document with write and response options.

Source core/local.go:268

@param ctx
Request context.
@param collection
Authored collection slug.
@param id
Source document ID.
@param overrides
Values applied to the copy.
@param options
Write and response options.
@returns
The authorized copy, 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.

  • MutationOptions

    Authorization, optimistic concurrency, response population, create status, and locale controls for one write.

  • Document

    A stored document with status and version metadata.