Creates a business logic definition in 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:CreateBusinessLogic | none | *All resources * |
| None |
Request syntax
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| workspaceId | string | Yes | The ID of the Alibaba Cloud Model Studio workspace used for the current request | llm-2v3934xtp49esw64 |
| body | object | No | Request body parameters | |
| type | integer | No | The type of the business logic explanation to create Valid values:
| 1 |
| description | string | No | The specific content of the business logic explanation | Winter refers to the period from October of the current year to March of the following year |
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 | FB11F719-9AC8-5C99-AB0A-4709D437FCFC |
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 | NoAuth | Bad Request: Workspace.Illegal.Auth. | The current account does not have permission on the specified business space |
| 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 |