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.
Intended for migration tooling. It still runs ordinary access, validation, hooks, transaction, upload-reference, and version logic.
Related types
LocalAPIIn-process content operations that share the REST authorization and lifecycle pipeline.
ValuesA map of field names to typed values.
ImportOptionsMigration-owned source identity, status, and timestamps.
DocumentA stored document with status and version metadata.