Editing the Tongyi Multimodal Translation termbase
Debug
You can call this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful call, OpenAPI Explorer can automatically generate SDK code examples.
Debug
Authorization information
The following table describes the authorization information of the API. You can use it in the Action element of a RAM permission policy statement to grant a RAM user or RAM role the permission to call this API. Details:
- Operation: the specific permission.
- Access level: the access level of each operation. Valid values: Write, Read, or List.
-
Resource type: the resource types that support authorization in the operation. Details:
- Required resource types are marked with a leading *.
- For operations that do not support resource-level authorization, All Resources is used.
- Condition key: the condition keys defined by the cloud service itself.
- Dependent operation: other permissions required to successfully perform the operation. The caller must also have the permissions of the dependent operations for the operation to succeed.
| Operation | Access level | Resource type | Condition key | Dependent operation |
|---|---|---|---|---|
| anytrans:TermEdit | none | *All Resources * |
| None |
Request syntax
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| workspaceId | string | Yes | The ID of the Model Studio workspace used for the current request. | llm-kqtrcpdee4xm29xx |
| action | string | Yes | The action type. Valid values:
| ADD |
| sourceLanguage | string | Yes | The source language. | en |
| targetLanguage | string | Yes | The target language. | zh |
| scene | string | Yes | The model type. Valid values:
| mt-flash |
| ext | object | Yes | The extended parameters. | |
| terms | array<object> | Yes | The intervention term list. | |
| object | Yes | An intervention term. | ||
| termId | string | No | The intervention term ID. | 92669964 |
| src | string | Yes | The source text. | 大模型 |
| tgt | string | Yes | The post-intervention translation. | LLM |
| paramMap | any | No | The extended parameter configuration. (bizUserld: the business-level user ID, used to distinguish different business users, achieving "user-isolated" term intervention without mutual impact. bizType: the business scenario type/identifier, used to distinguish different scenarios, achieving "scenario-isolated" term intervention without mutual impact.) Valid values:
| {"bizUserld":"123456","bizType":session"} |
Response parameters
| Name | Type | Description | Example value |
|---|---|---|---|
| object | Schema of Response | ||
| code | string | The response status code. | success |
| message | string | The response message. | success |
| requestId | string | The request ID. | 1DCD50EC-D218-1844-9CD8-E97CAB9D31BE |
| success | boolean | Indicates whether the API call is successful. | true |
| httpStatusCode | string | The HTTP status code. | 200 |
| data | object | The response data. | |
| terms | array<object> | The intervention term list. | |
| terms | object | An intervention term. | |
| termId | string | The term ID. | 92669964 |
| src | string | The source text. | 大模型 |
| tgt | string | The target text. | LLM |
| failCount | long | The number of failures. | 0 |
Examples
Success response
JSON format
Error codes
| HTTP status code | Error code | Error message |
|---|---|---|
| 400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. |
Release notes
| Change time | Change summary | Operation |
|---|---|---|
| 2025-12-25 | OpenAPI error codes changed | View change details |