Menu
Update a collection
Update a collection
PATCH
/collections/{collectionName}Use it in a workflow
- Add a step and choose the Typesense connector.
- Pick the Update a collection action (under collections).
- Fill in the fields below, then reference the result from later steps as
{{updateACollection.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"fields": [
{
"name": "company_name",
"type": "string",
"facet": false
},
{
"name": "num_employees",
"type": "int32",
"facet": false
},
{
"name": "country",
"type": "string",
"facet": true
}
],
"synonym_sets": [
"synonym_set_1"
],
"metadata": {}
}
Response
Returns 200 with an object. Read it in later steps with {{updateACollection.response.data.<field>}}.
{
"fields": [
{
"name": "company_name",
"type": "string",
"facet": false
},
{
"name": "num_employees",
"type": "int32",
"facet": false
},
{
"name": "country",
"type": "string",
"facet": true
}
],
"synonym_sets": [
"synonym_set_1"
],
"metadata": {}
}
Need more? See the Typesense guide for connection setup and behaviour shared by every action.
Was this page helpful?