Generates an embed ticket for the Copilot module in Quick BI.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quickbi-public:CreateTicket4Copilot |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CopilotId |
string |
Yes |
The ID of the embedded Copilot module. |
ccd3428c-dd23-460c-a608-26bae29dffee |
| TicketNum |
integer |
No |
The number of times the ticket can be used. Valid values: 1 to 99,999.
Each access decrements the usage count by one. |
1 |
| UserId |
string |
No |
The ID of the Quick BI user. This is not your Alibaba Cloud account ID. To obtain the user ID, call the QueryUserInfoByAccount operation. Example: Important Note: Specify either UserId or AccountName. If both parameters are left empty, the ticket is bound to the API caller by default, and access is granted based on the caller's identity. |
9c-asdawf-casxcasd-asdasd |
| AccountName |
string |
No |
The name of the user account. Important Note: This parameter is mutually exclusive with UserId. If both parameters are left empty, the ticket is bound to the API caller by default, and access is granted based on the caller's identity. |
测试用户 |
| AccountType |
integer |
No |
The type of the user account:
Important Note: This parameter is required if you specify AccountName. |
1 |
| ExpireTime |
integer |
No |
The expiration time of the ticket, in minutes. Maximum value: 240 (4 hours). Default value: 240. |
200 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
D787E1A3-A93C-424A-B626-C2B05DF8D885 |
| Result |
string |
The generated ticket. |
f5eeb52e-d9c2-4a8b-80e3-47ab55c2**** |
| Success |
boolean |
Indicates whether the request was successful.
|
true |
Examples
Success response
JSON format
{
"RequestId": "D787E1A3-A93C-424A-B626-C2B05DF8D885",
"Result": "f5eeb52e-d9c2-4a8b-80e3-47ab55c2****",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | CopilotEmbed.Config.NotFind | Can not find copilot embed config with this copilot ID. | Cannot find this embedded configuration |
| 400 | Authorize3rdTicket.Num.HasNoLeft | There is no ticket number left, please generate new ticket. | |
| 400 | Invalid.Param.Error | The parameter is invalid. | The parameter is invalid. |
| 400 | Authorize3rdTicket.Num.Exceed | The number of tickets %s is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.