---
title: "Create or update a forbidden word config for a single department. FE birden fazla markaya uygulamak isterse her marka için ayrı PUT atar."
method: PUT
path: "/v1/settings/forbiddenwords"
tags: ["ForbiddenWordConfig"]
---

# Create or update a forbidden word config for a single department. FE birden fazla markaya uygulamak isterse her marka için ayrı PUT atar.

`PUT /v1/settings/forbiddenwords`

## Request body

- ForbiddenWordConfig
  - `id` integer
  - `departmentId` integer
  - `words` ForbiddenWord[], nullable — An array of words (or regexes) to be forbidden from emails and chat messages.
    - `word` string, nullable
    - `isRegex` boolean
    - `isCaseSensitive` boolean
  - `isEnabled` boolean
  - `accountId` integer
  - `createdAt` string, date-time
  - `updatedAt` string, date-time, nullable

## Response `201`

Created

- ForbiddenWordConfig
  - `id` integer
  - `departmentId` integer
  - `words` ForbiddenWord[], nullable — An array of words (or regexes) to be forbidden from emails and chat messages.
    - `word` string, nullable
    - `isRegex` boolean
    - `isCaseSensitive` boolean
  - `isEnabled` boolean
  - `accountId` integer
  - `createdAt` string, date-time
  - `updatedAt` string, date-time, nullable

## Other responses

- `400` — Bad Request

---

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