---
title: "Update block list"
method: PUT
path: "/blocklists/{name}"
tags: ["product:chat"]
---

# Update block list

`PUT /blocklists/{name}`

Updates contents of the block list

## Path parameters

- `name` string, required — Block list name

## Request body

- UpdateBlockListRequest, nullable
  - `is_confusable_folding_enabled` boolean
  - `is_leet_check_enabled` boolean
  - `is_plural_check_enabled` boolean
  - `is_substring_matching_enabled` boolean
  - `team` string
  - `user` UserRequest — User request object
    - `custom` object — Custom user data
    - `id` string, required — User ID
    - `image` string — User's profile image URL
    - `invisible` boolean
    - `language` string
    - `name` string — Optional name of user
    - `privacy_settings` PrivacySettingsResponse
      - `delivery_receipts` DeliveryReceiptsResponse
        - `enabled` boolean
      - `read_receipts` ReadReceiptsResponse
        - `enabled` boolean
      - `typing_indicators` TypingIndicatorsResponse
        - `enabled` boolean
    - `role` string — User's global role
    - `teams` string[] — List of teams the user belongs to
    - `teams_role` object — Map of team-specific roles for the user
  - `user_id` string
  - `words` string[] — List of words to block

## Response `201`

Response

- UpdateBlockListResponse, nullable — Basic response information
  - `blocklist` BlockListResponse — Block list contains restricted words
    - `created_at` string, date-time — Date/time of creation
    - `id` string
    - `is_confusable_folding_enabled` boolean, required
    - `is_leet_check_enabled` boolean, required
    - `is_plural_check_enabled` boolean, required
    - `is_substring_matching_enabled` boolean, required
    - `name` string, required — Block list name
    - `owner_user_id` string
    - `team` string
    - `type` string, required — Block list type. One of: regex, domain, domain_allowlist, email, email_allowlist, word
    - `updated_at` string, date-time — Date/time of the last update
    - `words` string[], required — List of words to block
  - `duration` string, required — Duration of the request in milliseconds

## Other responses

- `400` — Bad request
- `429` — Too many requests

---

[API](https://skmtc.net/getstream/apis/stream-api.md) · [All operations](https://skmtc.net/getstream/apis/stream-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getstream/stream-api/versions/3dba86aaa0d8/schema)
