younifyd
Menu

Import documents into a collection

Import documents into a collection

POST/collections/{collectionName}/documents/import

Use it in a workflow

  1. Add a step and choose the Typesense connector.
  2. Pick the Import documents into a collection action (under documents).
  3. Fill in the fields below, then reference the result from later steps as {{importDocumentsIntoACollection.response.data}}.

Request

Path parameters

collectionNamestringrequired

The name of the collection

Query parameters

importDocumentsParametersobject
batch_sizeinteger
return_idboolean

Returning the id of the imported documents. If you want the import response to return the ingested document's id in the response, you can use the return_id parameter.

remote_embedding_batch_sizeinteger
return_docboolean
actionstring

One ofcreateupdateupsertemplace

dirty_valuesstring

One ofcoerce_or_rejectcoerce_or_dropdropreject

Response

Returns 200 with a string. Read it in later steps with {{importDocumentsIntoACollection.response.data.<field>}}.

Need more? See the Typesense guide for connection setup and behaviour shared by every action.