Generates a ticket to embed Copilot.
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. The value can range from 1 to 99,999.
Each access decrements the ticket's usage count by one. |
1 |
| UserId |
string |
No |
The ID of the Quick BI user. This is not your Alibaba Cloud account ID. Call the QueryUserInfoByAccount operation to obtain the user ID. Example: Important Note: Specify either UserId or AccountName. If you leave both parameters empty, the ticket is bound to the API caller by default. Access is then granted based on the caller's identity. |
9c-asdawf-casxcasd-asdasd |
| AccountName |
string |
No |
The name of the user account. Important Note: Specify either UserId or AccountName. If you leave both parameters empty, the ticket is bound to the API caller by default. Access is then 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.
|
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. Valid values:
|
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.