> ## Documentation Index
> Fetch the complete documentation index at: https://docs.open-metadata.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a Glossary Term

> Create or update a glossary term with a full request body

# Update a Glossary Term

Create a glossary term or update it if it already exists, using `PUT /v1/glossaryTerms` with the full request body. Send the complete definition, not just the fields you want to change. To change only some fields, use `PATCH` with a JSON Patch array and the `application/json-patch+json` content type, as shown in the PATCH examples below.

## Body Parameters

**name** `string` *required*

Name of the glossary term. Must be unique within the parent glossary or parent term.

**glossary** `string` *required*

Fully qualified name of the parent glossary, for example `BusinessGlossary`.

**displayName** `string`

Human-readable display name for the glossary term.

**description** `string` *required*

Description of the glossary term in Markdown format.

**parent** `string`

Fully qualified name of the parent glossary term for creating nested terms, for example `BusinessGlossary.Revenue`.

**synonyms** `array`

Array of synonym strings for this term.

**relatedTerms** `array`

Array of fully qualified names of related glossary terms.

**owners** `array`

Array of owner references (users or teams) to assign to the glossary term.

**properties**

**id** `string`

UUID of the owner entity.

**type** `string`

Type of owner entity, for example `user`, `team`.

**name** `string`

Name of the owner entity.

**tags** `array`

Array of classification tags to apply.

**properties**

**tagFQN** `string` *required*

Fully qualified name of the tag.

**labelType** `string`

Type of label, for example `Manual`, `Derived`, `Propagated`.

**state** `string`

State of the tag, for example `Suggested`, `Confirmed`.

**domains** `array`

Fully qualified names of the domains to assign for governance purposes.

**style** `object`

Visual styling for the glossary term.

**properties**

**color** `string`

Hex color code, for example `#FF5733`.

**iconURL** `string`

URL to a custom icon for the term.

```bash PUT /v1/glossaryTerms theme={null}
curl -X PUT "{base_url}/api/v1/glossaryTerms" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Revenue",
    "glossary": "BusinessGlossary",
    "description": "Total income generated from business operations",
    "synonyms": ["Income", "Earnings", "Sales"],
    "owners": []
  }'
```

```python PATCH /v1/glossaryTerms/{id} theme={null}
from metadata.sdk import configure
from metadata.sdk.entities import GlossaryTerms

configure(
    host="https://your-company.open-metadata.org/api",
    jwt_token="your-jwt-token"
)

# Retrieve, modify, and update
term = GlossaryTerms.retrieve("d3a50b09-g258-7h57-defg-42g1d5517ed4")
term.description = "Updated: Total income from all business operations before deductions"
term.synonyms = ["Income", "Earnings", "Sales", "Turnover"]
updated = GlossaryTerms.update(term)

print(f"Updated to version {updated.version.root}")
```

```java PATCH /v1/glossaryTerms/{id} theme={null}
// client is an initialized OpenMetadataClient.
var termId = "d3a50b09-g258-7h57-defg-42g1d5517ed4";
var term = client.glossaryTerms().get(termId);
term.setDescription("Updated: Total income from all business operations before deductions");

var updated = client.glossaryTerms().update(termId, term);
```

```bash PATCH /v1/glossaryTerms/{id} theme={null}
# Update by ID
curl -X PATCH "{base_url}/api/v1/glossaryTerms/d3a50b09-g258-7h57-defg-42g1d5517ed4" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json-patch+json" \
  -d '[
    {"op": "replace", "path": "/description", "value": "Updated: Total income from all business operations before deductions"}
  ]'

# Update by name
curl -X PATCH "{base_url}/api/v1/glossaryTerms/name/BusinessGlossary.Revenue" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json-patch+json" \
  -d '[
    {"op": "replace", "path": "/description", "value": "Updated: Total income from all business operations before deductions"}
  ]'
```

```json Response theme={null}
{
  "id": "d3a50b09-g258-7h57-defg-42g1d5517ed4",
  "name": "Revenue",
  "fullyQualifiedName": "BusinessGlossary.Revenue",
  "displayName": "Revenue",
  "description": "Updated: Total income from all business operations before deductions",
  "synonyms": ["Income", "Earnings", "Sales", "Turnover"],
  "glossary": {
    "id": "c2940a98-f147-6g46-cdef-31f0c4406dc3",
    "type": "glossary",
    "name": "BusinessGlossary",
    "fullyQualifiedName": "BusinessGlossary",
    "deleted": false
  },
  "version": 0.2,
  "updatedAt": 1769984330261,
  "updatedBy": "admin",
  "href": "http://localhost:8585/api/v1/glossaryTerms/d3a50b09-g258-7h57-defg-42g1d5517ed4",
  "deleted": false,
  "owners": [],
  "tags": [],
  "children": [],
  "relatedTerms": []
}
```

***

## Returns

Returns the updated glossary term object with the new version number.

## Response

**id** `string`

Unique identifier for the glossary term (UUID format).

**name** `string`

Glossary term name.

**fullyQualifiedName** `string`

Fully qualified name of the glossary term.

**description** `string`

Updated description.

**version** `number`

Incremented version number.

***

## Error Handling

| Code | Error Type | Description |
| - | - | - |
| `400` | `BAD_REQUEST` | Invalid or malformed request body |
| `401` | `UNAUTHORIZED` | Invalid or missing authentication token |
| `403` | `FORBIDDEN` | User lacks permission to update this glossary term |
| `409` | `CONFLICT` | Concurrent modification detected |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.