CreateTicket

Updated at: 2025-04-17 10:49
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Generate a ticket for third-party embedding.

Operation description

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
OperationAccess levelResource typeCondition keyAssociated operation
quickbi-public:CreateTicketcreate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ParameterTypeRequiredDescriptionExample
WorksIdstringYes

The ID of the report to be embedded. Currently supports dashboards, spreadsheets, data screens, self-service data retrieval, ad-hoc analysis, and data entry.

a206f5f3-****-e9b17c835b03
CmptIdstringNo

Component ID. This is the ID of a component within the above-mentioned dashboard; other types of works do not support this. Refer to QueryWorksBloodRelationship for the API to get the component ID.

0fc6a275c7f64f17b1****a306ce0f31
TicketNumintegerNo

The number of tickets. Each time a ticket is used, the number of tickets decreases by 1.

  • Default value: 1
  • Recommended value: 1
  • Maximum value: 99999
1
UserIdstringNo

Quick BI's UserId, which is not your Alibaba Cloud account ID. You can call the QueryUserInfoByAccount interface to obtain the UserId. An example of a UserId is fe67f61a35a94b7da1a34ba174a7****.

Note
Only one of UserId and AccountName needs to be filled in. If neither is filled in, it will default to binding the report's Owner, and the report will be accessed with that user's identity. If you need to configure row-level permissions, please refer to Row-Level Permissions.
46e537466****92704c8
AccountNamestringNo

The user's account name.

  • If the user is an Alibaba Cloud primary account wangwu, the format is [Primary Account], for example, wangwu.
  • If the user is a RAM account zhangsan@aliyun.cn**, the format is [Primary Account: Sub-Account], for example, wangwu:zhangsan.
Note
Only one of UserId and AccountName needs to be filled in. If neither is filled in, it will default to binding the report's Owner, and the report will be accessed with that user's identity. If you need to configure row-level permissions, please refer to Row-Level Permissions.
test
AccountTypeintegerNo

The type of the user's account.

  • 1: Alibaba Cloud account
  • 3: Quick BI self-built account
  • 4: DingTalk
  • 5: RAM sub-account
  • 9: WeCom
  • 10: Feishu
Note
If AccountName is not empty, then AccountType must also not be empty.
1
ExpireTimeintegerNo

Expiration time

  • Unit: minutes
  • Default: 240
200
WatermarkParamstringNo

Watermark parameters for the report.

  • Must not exceed 50 characters.
  • When the report type is a large screen, watermark parameter passing is not supported.
test
GlobalParamstringNo

Global parameters for the report filter conditions.

  • A string in JsonArray format.
Note
If you need to use global parameter capabilities, please contact the Quick BI Operations Manager.
[{"paramKey":"price","joinType":"and","conditionList":[{"operate":">","value":"0"}]}]

Response parameters

ParameterTypeDescriptionExample
ParameterTypeDescriptionExample
object
RequestIdstring

Request ID.

D787E1A3-A93C-424A-B626-C2B05DF8D885
Resultstring

The generated ticket value.

ccd3428c-****-****-a608-26bae29dffee
Successboolean

Indicates whether the request was successful. Value range:

  • true: Request succeeded
  • false: Request failed
true

Examples

Sample success responses

JSONformat

{
  "RequestId": "D787E1A3-A93C-424A-B626-C2B05DF8D885",
  "Result": "ccd3428c-****-****-a608-26bae29dffee",
  "Success": true
}

Error codes

HTTP status codeError codeError messageDescription
HTTP status codeError codeError messageDescription
400Authorize3rdTicket.BindedWorks.MismatchThe report bound by the ticket mismatches the actual report.-
400Authorize3rdTicket.ExpiredTicket [%s] has expired.-
400Authorize3rdTicket.HasNo.LoginTokenThe request [%s] has no token.-
400Authorize3rdTicket.NotExistTicket %s does not exist.-
400Authorize3rdTicket.Num.ExceedThe number of tickets %s is invalid.-
400Authorize3rdTicket.Num.HasNoLeftThere is no ticket number left, please generate new ticket.-
400Report.NotExist.ErrorThis work does not exist. It may have been deleted. Work ID is %s.This work does not exist. It may have been deleted. Work ID is %s.
400Authorize3Rd.Report.UnauthorizedThe report is not enabled for third party embedding.This report is not enabled for 3rd party embedding.
400Cube.Not.ExistThe Cube does not exist.The Cube does not exist.
400Datasource.NotFound.ErrorThe specified data source does not exist: %s.The specified data source does not exist: %s.
400Report.NotExistThe dashboard does not exist.The dashboard does not exist.
400Organization.Workspace.InconformityThe workspace does not match the organization.workspace inconformity with organization.
400Parameter.Length.ExceedParameter length exceeds maximum limit: [%s].-
400GlobalParam.Restricted.UseThe global parameter function is restricted in your version.-
400Authorize3rdTicket.Unsupport.ScreenWatermarkScreen embed does not support watermark parameters.Screen embed does not support watermark parameters.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
Change timeSummary of changesOperation
2023-10-24The Error code has changedView Change Details
2022-03-04The Error code has changedView Change Details
  • On this page (0)
  • Operation description
  • Debugging
  • Authorization information
  • Request parameters
  • Response parameters
  • Examples
  • Error codes
  • Change history
Feedback