Creates a ticket.
Operation description
To facilitate ticket creation, you can call the following dedicated operations to create some types of tickets:
- CreateDataCorrectOrder : creates a regular data change ticket.
- CreateDataCronClearOrder : creates a ticket to clear historical data.
- CreateDataImportOrder : creates a data import ticket.
- CreateFreeLockCorrectOrder : creates a lock-free change ticket.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Tid | long | No | The ID of the tenant. You can call the GetUserActiveTenant or ListUserTenants operation to obtain the tenant ID. | 3*** |
Comment | string | Yes | The description of the ticket to be created. | test |
PluginParam | object | Yes | The ticket creation parameter. The value is a JSON string. The value of this parameter differs based on the type of the ticket. For more information, see the PluginParam parameter section in this topic. | {PluginParam_test} |
RelatedUserList | string | Yes | The IDs of the stakeholders that are involved in the ticket. Separate multiple IDs with commas (,). | user1,user2 |
PluginType | string | Yes | The type of the ticket. For more information, see PluginType parameter. | DATA_EXPORT |
AttachmentKey | string | No | The key of an attachment that is returned after the attachment is uploaded. You can call the GetUserUploadFileJob operation to query the key of the attachment. | test_AttachmentKey |
PluginParam parameter
# Change a schema design.
{
"title": "test", // The name of the ticket.
"description": "test", // The description of the ticket.
"dbId": 11****, // The database to which changes are made.
"logic": false, // Specifies whether the database is a logical database.
"relatedIds": [], // The IDs of the stakeholders that are involved in the ticket.
}
# Export data.
{
"classify": "Reason", // The purpose of the ticket.
"dbId": 17****, // The ID of the database from which data is exported.
"exeSQL": "select 1", // The SQL statement that is executed to export data.
"logic": false, // Specifies whether the database is a logical database.
"ignoreAffectRows": false, // Specifies whether to ignore the affected rows.
"affectRows": 1, // The estimated number of affected rows.
"ignoreAffectRowsReason": "" // The reason for ignoring the affected rows.
}
If you need to create more types of tickets, submit a ticket for consultation.
Response parameters
Examples
Sample success responses
JSON
format
{
"CreateOrderResult": {
"OrderIds": [
0
]
},
"RequestId": "427688B8-ADFB-4C4E-9D45-EF5C1FD6****",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|