CreateTicket4AiPro
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AiProId |
string |
Yes |
The ID of the AIPro embedding configuration. The configuration must exist, belong to the current organization, and have a status of 1. |
test |
| TicketNum |
integer |
No |
The number of times the ticket can be used. Default value: 1. Valid values: 1 to 99999. |
1 |
| QuickBIUserId |
string |
No |
The QuickBI user ID of the access user to bind. Specify either this parameter or the combination of AccountName and AccountType. |
test |
| AccountName |
string |
No |
The account of the access user to bind. Use this parameter together with AccountType when QuickBIUserId is not specified. |
test |
| AccountType |
integer |
No |
The account type of the user. Valid values:
|
1 |
| ExpireTime |
integer |
No |
The validity period of the ticket, in minutes. Default value: 240. The value must be greater than 0. |
22 |
| SystemUid |
string |
No |
The custom system identifier. The length must be less than 150 characters. |
test |
| CustomParam |
string |
No |
The custom pass-through parameter. If specified, it must be a valid JSON string. |
test |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
D787E1A**********DF8D885 |
| Result |
string |
The embedding ticket. |
true |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "D787E1A**********DF8D885",
"Result": "true",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Internal.System.Error | An internal system error occurred. | An internal system error occurred. |
| 400 | UserRoleConfig.NotContain.Function | The user %s does not have permission to operate. | The user %s does not have permission to operate. |
| 400 | Invalid.Parameter.Error | The parameter is invalid:%s. | invalid parameter: ${0}. |
| 400 | AIPro.EmbedConfig.NotFindError | Can not find AI Pro embed config with this aiProId %s. | Embedded configuration not found:%s. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.