---
title: "Update a glossary rule"
method: PATCH
path: "/sites/{siteId}/glossary/{ruleId}"
tags: ["Glossary"]
---

# Update a glossary rule

`PATCH /sites/{siteId}/glossary/{ruleId}`

## Request

- Base URL: `https://api.universally.com`
- URL: `https://api.universally.com/sites/{siteId}/glossary/{ruleId}`
- Auth: API key in header `X-API-Key`

Updates a glossary rule.

## Path parameters

- `siteId` string, required
- `ruleId` string, required

## Request body

- object
  - `sourceTerm` string
  - `type` 'keep' | 'translate'
  - `translation` string, nullable
  - `languageCode` string
  - `caseSensitive` boolean
  - `applyToWorkspace` boolean
  - `matchType` 'literal' | 'pattern'

## Response `200`

Success

- object
  - `success` boolean
  - `data` unknown
  - `message` string, nullable
  - `code` string

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/universally/apis/universally-platform-api.md) · [All operations](https://skmtc.dev/universally/apis/universally-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/universally/apis/universally-platform-api/revisions/d61beda7bab7?raw)
