method

LocalAPI.Import

func (local *LocalAPI) Import( ctx context.Context, collection string, values store.Values, options ImportOptions, actor *store.Document, ) (store.Document, error)

Create a document with trusted source identity and timestamps.

Source core/local.go:288

@param ctx
The ctx value.
@param collection
The collection value.
@param values
The values value.
@param options
The options value.
@param actor
The actor value.
@returns
The declared result.

Intended for migration tooling. It still runs ordinary access, validation, hooks, transaction, upload-reference, and version logic.

Related types

  • LocalAPI

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

  • Values

    A map of field names to typed values.

  • ImportOptions

    Migration-owned source identity, status, and timestamps.

  • Document

    A stored document with status and version metadata.