Delete synonyms in bulk from the specified workspace.
Debug
You can run this API directly in OpenAPI Explorer without having to calculate signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.
Debug
Authorization information
The following table lists the authorization information of this API. You can use it in the Action element of a RAM policy statement to grant a RAM user or RAM role the permission to call this API. Details:
- Operation: the specific permission point.
- Access level: the access level of each operation. Valid values: Write, Read, and List.
-
Resource type: the resource types that support authorization in the operation. Details:
- For required resource types, the prefix * is added.
- For operations that do not support resource-level authorization,
All resourcesis used.
- Condition key: the condition keywords defined by the cloud product itself.
- Related operation: other permissions required to successfully execute the operation. The caller must have the permissions of the related operations at the same time for the operation to succeed.
| Operation | Access level | Resource type | Condition key | Related operation |
|---|---|---|---|---|
| dataanalysisgbi:BatchDeleteSynonyms | 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-2v3934xtp49esw64 |
| body | object | No | Request body parameters | |
| synonymIdKeys | array | Yes | The list of IDs of the synonyms to delete | |
| Id | string | No | Synonym ID | synonym-AAAAAAAAh6cWOUPagYstkg |
Response elements
| Name | Type | Description | Example value |
|---|---|---|---|
| object | Result | ||
| data | any | The response message | true |
| errorMsg | string | The error message | NoAuth |
| code | string | The error code | NoAuth |
| success | boolean | true if the API call succeeds, false if the API call fails | true |
| requestId | string | The unique ID of the request, which is useful for troubleshooting | 45390C6D-016D-5030-BF65-031ED1F65003 |
Examples
Success response example
JSON format
Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 401 | Internal.Error | Bad Request: Internal Error. | Internal error. Contact customer service personnel for troubleshooting |
| 401 | NoResourceAuth | Bad Request: Resource Auth Error. | No permission for the requested resource. Make sure that the requested resource belongs to the business space in the current parameters |
| 401 | NoAuth | Bad Request: Workspace.Illegal.Auth. | The current account does not have permission on the specified business space |
| 401 | SystemOperationInProgress | Xiyan GBI is learning your previous modifications. Please try again later. | Xiyan GBI is learning your previous modifications. Try again later |