Glossary API
Update Glossary
/v1/glossary/updateUpdate glossary details or terminology.
Example
curl
1curl -X POST 'https://dltranslator.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}'Request parameters
| Parameters | Type | Default | Description | Example |
|---|---|---|---|---|
| *glossaryId | String | - | Glossary ID | - |
| name | String | - | Name | Financial terminology 2 |
| desc | String | - | Description | - |
| targetLang | String | - |
| - |
| keys | String[] | - | Array of all terminology | ["储蓄分流"] |
| translated | JSON | - | Terminology translation mapping | {'储蓄分流':'Diversion of household deposits'} |
Response
| Parameters | Type | Default | Description | Example |
|---|---|---|---|---|
| glossaryId | String | - | Glossary ID | - |
| name | String | - | Name | - |
| desc | String | - | Description | - |
| targetLang | String | - | Target Language | - |
| keys | String[] | - | Array of all terminology | - |
| translated | JSON | - | Terminology translation mapping | - |
| createdAt | DateTime | - | Glossary creation time | - |
| updatedAt | DateTime | - | Glossary update time | - |