younifyd
Menu

Update documents with conditional query

Update documents with conditional query

PATCH/collections/{collectionName}/documents

Use it in a workflow

  1. Add a step and choose the Typesense connector.
  2. Pick the Update documents with conditional query action (under documents).
  3. Fill in the fields below, then reference the result from later steps as {{updateDocumentsWithConditionalQuery.response.data}}.

Request

Path parameters

collectionNamestringrequired

The name of the collection to update documents in

Query parameters

updateDocumentsParametersobject
filter_bystring

Response

Returns 200 with an object. Read it in later steps with {{updateDocumentsWithConditionalQuery.response.data.<field>}}.

num_updatedinteger

The number of documents that have been updated

json
{
  "num_updated": 1
}

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