CreateTicket4AiPro

Updated at:

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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: Alibaba Cloud account.

  • 3: Quick BI custom account.

  • 4: DingTalk.

  • 5: RAM user.

  • 9: WeCom.

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: Successful.

  • false: Failed.

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.