Creates a business scenario to define a custom machine-assisted moderation policy for the AI Guardrails API.
Operation description
Operation: CreateBizType
This operation is free of charge. By default, you can create up to 100 custom business scenarios per account.
For information about constructing HTTP requests, see Request structure. To use an SDK instead, see SDK overview.
QPS limits
This operation supports up to 10 queries per second (QPS) per account. Exceeding this limit triggers throttling, which may affect your service.
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| BizTypeName | String | Yes | bizType1 | The name of the business scenario. The name can contain letters, underscores (_), and digits. |
| BizTypeImport | String | No | bizTypeTest | The name of an existing business scenario to import. |
| CiteTemplate | Boolean | No | true | Specifies whether to import the configuration of an industry template. Valid values: true (imports the industry template configuration) and false (does not import the industry template configuration). Default value: false. If set to true, you must also specify IndustryInfo. |
| IndustryInfo | String | No | Social-Registration information-Profile picture | The industry classification. Valid values:
|
| Description | String | No | Test business scenario | The description of the business scenario. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 795D8871-4889-4C0F-A8B1-C7D2B990FF61 | The request ID. |
Examples
Sample request
http(s)://green.cn-shanghai.aliyuncs.com/?Action=CreateBizType&ServiceModule=open_api
&<Common request parameters>
{
"BizTypeName": "bizType1",
"BizTypeImport": "bizTypeTest",
"CiteTemplate": true,
"IndustryInfo": "Social-Registration information-Profile picture",
"Description": "Test business scenario"
}Sample success response
{
"RequestId": "795D8871-4889-4C0F-A8B1-C7D2B990FF61"
}