---
title: "Change the glossary of the translation"
method: PUT
path: "/api/v1/glossary"
tags: ["glossary"]
---

# Change the glossary of the translation

`PUT /api/v1/glossary`

## Request

- Base URL: `https://easeweb.host`
- URL: `https://easeweb.host/api/v1/glossary`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `sessionid`

Tell the machine translator how to translate terms: {"en": {"стенд, стенде, стенда": "lab", "засечки, засечек":
"marks", "Занятие": "Lesson"}} -- the target language, the term with the forms of it that differ (separated by
commas) and its translation. For a presentation ("slug", you may edit it) or for all of a project ("project", yours).
The entries are added to the glossary; an entry with "" as its translation is taken out; "replace": true replaces the
whole glossary. The machine translations of the texts with these terms are made again (translations written by people
stay).

## Request body

- object
  - `slug` string: The presentation (its slug) -- or give "project".
  - `project` string: The project (its slug): its glossary counts for all its presentations.
  - `glossary` object, required: {"<language>": {"<term, its forms>": "<translation>"}}.
  - `replace` boolean: Replace the whole glossary (default: add to it).

## Response `200`

OK

- object

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/easeweb/apis/easeweb-presentations-api.md) · [All operations](https://skmtc.dev/easeweb/apis/easeweb-presentations-api/llms.txt) · [OpenAPI document](https://skmtc.dev/easeweb/apis/easeweb-presentations-api/revisions/9f5566adb5d1?raw)
