Glossary API
Update Glossary
/v1/glossary/updateUpdate glossary details or terms.
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": "Financial terminology 2",
7 "keys": "[\"储蓄分流\"]",
8 "translated": "{'储蓄分流':'Diversion of household deposits'}"
9}'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 | - |