文档目录

术语表 API

更新术语表

/v1/glossary/update

更新术语表详情或术语。

示例

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": "金融术语2",
7  "keys": "[\"储蓄分流\"]",
8  "translated": "{'储蓄分流':'Diversion of household deposits'}"
9}'

请求参数

参数类型默认描述示例
*glossaryIdString-

术语表ID

-
nameString-

名称

金融术语2
descString-

描述

-
targetLangString-
  • 目标语言
  • 支持语言:查询
-
keysString[]-

所有术语的数组

["储蓄分流"]
translatedJSON-

术语对应译文的Map

{'储蓄分流':'Diversion of household deposits'}

响应

参数类型默认描述示例
glossaryIdString-

术语表ID

-
nameString-

名称

-
descString-

描述

-
targetLangString-

目标语言

-
keysString[]-

所有术语的数组

-
translatedJSON-

术语对应译文的Map

-
createdAtDateTime-

术语表的创建时间

-
updatedAtDateTime-

术语表的更新时间

-
术语表 API
查询术语表
术语表 API
删除术语表