---
title: "Upserts a stopwords set."
method: PUT
path: "/stopwords/{setId}"
tags: ["stopwords"]
---

# Upserts a stopwords set.

`PUT /stopwords/{setId}`

When an analytics rule is created, we give it a name and describe the type, the source collections and the destination collection.

## Path parameters

- `setId` string, required

## Request body

- StopwordsSetUpsertSchema
  - `stopwords` string[], required
  - `locale` string

## Response `200`

Stopwords set successfully upserted.

- StopwordsSetSchema
  - `id` string, required
  - `stopwords` string[], required
  - `locale` string

## Other responses

- `400` — Bad request, see error message for details.

---

[API](https://skmtc.dev/typesense/apis/typesense-api.md) · [All operations](https://skmtc.dev/typesense/apis/typesense-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/typesense/typesense-api/revisions/1d9b3b61638e/schema)
