Skip to main content

TermEdit

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.
OperationAccess levelResource typeCondition keyDependent operation
anytrans:TermEditnone
*All Resources
*
    None
None

Request syntax

POST /anytrans/translate/intervene/edit HTTP/1.1

Request parameters

NameTypeRequiredDescriptionExample value
workspaceIdstringYes

The ID of the Model Studio workspace used for the current request.

llm-kqtrcpdee4xm29xx
actionstringYes

The action type.

Valid values:
  • ADD: add.
  • DELETE: delete.
  • MODIFY: modify.
ADD
sourceLanguagestringYes

The source language.

en
targetLanguagestringYes

The target language.

zh
scenestringYes

The model type.

Valid values:
  • mt-plus: Professional Edition.
  • mt-flash: Lite Edition.
mt-flash
extobjectYes

The extended parameters.

termsarray<object>Yes

The intervention term list.

objectYes

An intervention term.

termIdstringNo

The intervention term ID.

92669964
srcstringYes

The source text.

大模型
tgtstringYes

The post-intervention translation.

LLM
paramMapanyNo

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:
  • bizType: the business scenario type.
  • bizUserId: the business user ID.
{"bizUserld":"123456","bizType":session"}

Response parameters

NameTypeDescriptionExample value
object

Schema of Response

codestring

The response status code.

success
messagestring

The response message.

success
requestIdstring

The request ID.

1DCD50EC-D218-1844-9CD8-E97CAB9D31BE
successboolean

Indicates whether the API call is successful.

true
httpStatusCodestring

The HTTP status code.

200
dataobject

The response data.

termsarray<object>

The intervention term list.

termsobject

An intervention term.

termIdstring

The term ID.

92669964
srcstring

The source text.

大模型
tgtstring

The target text.

LLM
failCountlong

The number of failures.

0

Examples

Success response JSON format
{
  "code": "success",
  "message": "success",
  "requestId": "1DCD50EC-D218-1844-9CD8-E97CAB9D31BE",
  "success": true,
  "httpStatusCode": 200,
  "data": {
    "terms": [
      {
        "termId": 92669964,
        "src": "大模型",
        "tgt": "LLM"
      }
    ],
    "failCount": 0
  }
}

Error codes

HTTP status codeError codeError message
400IdempotentParameterMismatchThe 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.
Visit the Error Center to view more error codes.

Release notes

Change timeChange summaryOperation
2025-12-25OpenAPI error codes changedView change details