文档中心 > API类目 > 阿里翻译API

alibaba.intl.translationplatform.terminologies.update (术语更新)

术语更新(批量,支持增、删、改、取消)

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
input_dto InputDTO 可选 术语列表
  • └ country
  • String
  • 可选
  • MT_ALL
  • 语种识别类型,其他干预类型不填,匹配国家编码
  • └ src
  • String
  • 必须
  • Take over the pipe
  • 原文
  • └ app_name
  • String
  • 可选
  • MT_ALL
  • 应用名
  • └ match_type
  • Number
  • 必须
  • 2
  • 是否忽略大小写 1不忽略 2 忽略
  • └ trg
  • String
  • 必须
  • 对接管
  • 译文
  • └ priority
  • Number
  • 必须
  • 1
  • 优先级 可选值 1,2,3
  • └ src_generalize_label
  • String
  • 可选
  • null
  • 泛化标签
  • └ user_name
  • String
  • 必须
  • lsk01628102
  • 用户名
  • └ type
  • Number
  • 可选
  • 1001
  • 1001全文干预,2001术语删除,2002术语替换,3001正则删除,3002正则替换
  • └ custom_bpm_auth_key
  • String
  • 可选
  • null
  • 自定义工作流authKey(编码和authKey都不是空的时候使用,否则使用默认审批流)
  • └ business_side
  • String
  • 必须
  • MT_ALL
  • 业务方
  • └ interference_type
  • String
  • 必须
  • term
  • 干预类型 term:短语干预 sentence:整句干预, recognition语种识别
  • └ extra_condition
  • String
  • 可选
  • null
  • 额外生效条件
  • └ id
  • Number
  • 可选
  • 0
  • 主键,增删改操作对应于干预id (inteveneId),取消操作填写审批流id(bpmId)
  • └ tag
  • String
  • 可选
  • null
  • 标签
  • └ entry_reason
  • Number
  • 必须
  • 2
  • 录入原因 1:系统 2:人工
  • └ trg_lang
  • String
  • 必须
  • zh
  • 目标语向 语种识别代表识别结果
  • └ field_type
  • String
  • 可选
  • null
  • 场景 只有整句干预有两个选项(query, other)
  • └ custom_bpm_code
  • String
  • 可选
  • null
  • 自定义工作流编码(编码和authKey都不是空的时候使用,否则使用默认审批流)
  • └ src_lang
  • String
  • 必须
  • en
  • 源语向
  • └ src_generalize
  • Number
  • 可选
  • 1
  • 是否泛化 0:不泛化 1:泛化
action_dto ActionDTO 可选 用户参数
  • └ empl_id
  • String
  • 必须
  • WB01628102
  • 员工id
  • └ bu
  • String
  • 必须
  • aliyun
  • 用户所属业务方
  • └ op_enum
  • String
  • 必须
  • ADD
  • 操作类型 ADD/MODIFY/DELETE/CALCEL(取消操作终止当前审批流,如果审批流对应的干预数据存在则删除对应干预数据)
  • └ is_admin
  • Boolean
  • 必须
  • true
  • 是否管理员 管理员有超级权限
  • └ user_name
  • String
  • 必须
  • 梁少康
  • 员工姓名
  • └ verify_bu
  • Boolean
  • 必须
  • false
  • 是否校验bu
  • └ is_inner
  • Boolean
  • 必须
  • false
  • 内部用户需要发起内外工作流,外部用户直接操作数据库

响应参数

名称 类型 示例值 描述
result ResultDTO 返回对象DTO
  • └ msg
  • String
  • null
  • 返回信息
  • └ data
  • String
  • a6502a64c9b8f59fff513b42a44d8168
  • 数据
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ attach
  • String
  • null
  • 附件
  • └ error_code_enum
  • String
  • null
  • 错误码枚举

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIntlTranslationplatformTerminologiesUpdateRequest req = new AlibabaIntlTranslationplatformTerminologiesUpdateRequest();
AlibabaIntlTranslationplatformTerminologiesUpdateRequest.InputDTO obj1 = new AlibabaIntlTranslationplatformTerminologiesUpdateRequest.InputDTO();
obj1.setCountry("MT_ALL");
obj1.setSrc("Take over the pipe");
obj1.setAppName("MT_ALL");
obj1.setMatchType(2L);
obj1.setTrg("对接管");
obj1.setPriority(1L);
obj1.setSrcGeneralizeLabel("null");
obj1.setUserName("lsk01628102");
obj1.setType(1001L);
obj1.setCustomBpmAuthKey("null");
obj1.setBusinessSide("MT_ALL");
obj1.setInterferenceType("term");
obj1.setExtraCondition("null");
obj1.setId(0L);
obj1.setTag("null");
obj1.setEntryReason(2L);
obj1.setTrgLang("zh");
obj1.setFieldType("null");
obj1.setCustomBpmCode("null");
obj1.setSrcLang("en");
obj1.setSrcGeneralize(1L);
req.setInputDto(obj1);
AlibabaIntlTranslationplatformTerminologiesUpdateRequest.ActionDTO obj2 = new AlibabaIntlTranslationplatformTerminologiesUpdateRequest.ActionDTO();
obj2.setEmplId("WB01628102");
obj2.setBu("aliyun");
obj2.setOpEnum("ADD");
obj2.setIsAdmin(true);
obj2.setUserName("梁少康");
obj2.setVerifyBu(false);
obj2.setIsInner(false);
req.setActionDto(obj2);
AlibabaIntlTranslationplatformTerminologiesUpdateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_intl_translationplatform_terminologies_update_response>
    <result>
        <msg>null</msg>
        <data>a6502a64c9b8f59fff513b42a44d8168</data>
        <success>true</success>
        <attach>null</attach>
        <error_code_enum>null</error_code_enum>
    </result>
</alibaba_intl_translationplatform_terminologies_update_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部