API Glosariusza
Aktualizuj glosariusz
/v1/glossary/updateAktualizuj szczegóły glosariusza lub terminy.
Przykład
curl
1curl -X POST 'https://otranslator.com/api/v1/glossary/update' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{
5 "glossaryId": "[string]",
6 "name": {
7 "id": "0twXbd"
8 },
9 "keys": "[\"储蓄分流\"]",
10 "translated": "{'储蓄分流':'Diversion of household deposits'}"
11}'Parametry żądania
| Parametry | Typ | Domyślny | Opis | Przykład |
|---|---|---|---|---|
| *glossaryId | String | - | ID glosariusza | - |
| name | String | - | Nazwa | Terminologia finansowa 2 |
| desc | String | - | Opis | - |
| targetLang | String | - |
| - |
| keys | String[] | - | Tablica wszystkich terminów | ["储蓄分流"] |
| translated | JSON | - | Mapa tłumaczeń terminów | {'储蓄分流':'Diversion of household deposits'} |
Odpowiedź
| Parametry | Typ | Domyślny | Opis | Przykład |
|---|---|---|---|---|
| glossaryId | String | - | ID glosariusza | - |
| name | String | - | Nazwa | - |
| desc | String | - | Opis | - |
| targetLang | String | - | Język docelowy | - |
| keys | String[] | - | Tablica wszystkich terminów | - |
| translated | JSON | - | Mapa tłumaczeń terminów | - |
| createdAt | DateTime | - | Data utworzenia glosariusza | - |
| updatedAt | DateTime | - | Czas aktualizacji słownika terminologicznego | - |