method

LocalAPI.PublishWithOptions

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

Publish a versioned document with optimistic concurrency and response controls.

Source core/local.go:551

@param ctx
Request context.
@param collection
Versioned collection slug.
@param id
Document ID.
@param options
Write and response options.
@returns
The published document, or an operation error.

Related types

  • LocalAPI

    In-process content operations that share the REST authorization and lifecycle pipeline.

  • MutationOptions

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

  • Document

    A stored document with status and version metadata.