Update Glossary
Update glossary metadata.
Endpoint
PATCH /api/v4/glossaries/{id}
Request Type
type UpdateGlossaryRequest = {
name?: string;
description?: string;
is_active?: boolean;
};
Request Fields
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | Updated glossary name |
description | string | No | Updated description |
is_active | boolean | No | Active status |
Response Type
type GlossaryResponse = {
data: Glossary;
};
type Glossary = {
id: number;
name: string;
description: string | null;
source_language: string;
target_language: string;
entry_count: number;
is_active: boolean;
deepl_glossary_id: string | null;
google_glossary_id: string | null;
organization_id: number;
created_at: string;
last_modified: string;
entries?: GlossaryEntry[];
};
Notes
- All fields in the request are optional
- Only provided fields will be updated
- Returns the full updated glossary object
- The
is_activefield controls whether the glossary is used for translations