术语表API
更新术语表
/v1/glossary/update更新术语表详情或术语。
示例
curl
1curl -X POST 'https://shangyiai.com/api/v1/glossary/update' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{
5 "glossaryId": "[string]",
6 "name": "金融术语2",
7 "keys": "[\"储蓄分流\"]",
8 "translated": "{'储蓄分流':'Diversion of household deposits'}"
9}'请求参数
响应
| 参数 | 类型 | 默认 | 描述 | 示例 |
|---|---|---|---|---|
| glossaryId | String | - | 术语表ID | - |
| name | String | - | 名称 | - |
| desc | String | - | 描述 | - |
| targetLang | String | - | 目标语言 | - |
| keys | String[] | - | 所有术语的数组 | - |
| translated | JSON | - | 术语对应译文的Map | - |
| createdAt | DateTime | - | 术语表的创建时间 | - |
| updatedAt | DateTime | - | 术语表的更新时间 | - |