---
title: "Create Or Update Text Blocklist"
method: PATCH
path: "/text/blocklists/{blocklistName}"
---

# Create Or Update Text Blocklist

`PATCH /text/blocklists/{blocklistName}`

Updates a text blocklist. If the blocklistName does not exist, a new blocklist will be created.

## Path parameters

- `blocklistName` string, required

## Query parameters

- `api-version` string, required

## Response `200`

The request has succeeded.

- TextBlocklist — Text Blocklist.
  - `blocklistName` string, required — Text blocklist name.
  - `description` string — Text blocklist description.

## Other responses

- `201` — The request has succeeded and a new resource has been created as a result.
- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/cognitiveservices-contentsafety.md) · [All operations](https://skmtc.net/azure/apis/cognitiveservices-contentsafety/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/cognitiveservices-contentsafety/versions/d4969093cba0/schema)
