Add
更新时间:
复制 MD 格式
Call the Add operation to submit a ticket to Alibaba Cloud for processing.
To upload attachments, first call the getOSSTempAuthor operation to obtain authorization. For more information, see getOSSTempAuthor. After you obtain authorization, upload the attachments using an Object Storage Service (OSS) client.
Request parameters
| Name | Type | Required | Example | Description |
| productId | Int | No | 12 | The ID of the product associated with the ticket. Note This parameter is required if customerCommonQuestionId is not specified. |
| customerCommonQuestionId | Int | No | - | The ID of the FAQ. Note This parameter is required if productId is not specified. |
| title | String | No | This is a ticket | The title of the ticket. If this parameter is empty, the first 30 characters of the content parameter are used. |
| content | String | Yes | This is the body of the ticket. | The main body of the ticket question. |
| secContent | String | No | - | Confidential information, such as passwords or personal information. |
| aliUid | Int | Yes | 1018******9522 | The UID of the user who owns the ticket. |
| phone | String | No | 139******** | The phone number used to receive system notifications or calls from customer service. |
| smsAlertTime | String | No | normal | The preferred time period for text message alerts. Valid values:
|
| String | No | zhang***@****.com | The email address used to receive system notifications or messages from customer service. | |
| attachments | String | No | - | The names of the attachments uploaded using an OSS client. Note If there are multiple attachments, separate their names with commas (,). You can upload a maximum of three attachments. |
Response parameters
| Name | Type | Example | Description |
| data | String | 8M***UY | The data returned by the operation. If the call is successful, the ID of the newly created ticket is returned. |
| success | String | true | Indicates whether the operation call was successful.
|
| message | String | successful | The error message. If the operation call fails, a detailed error message is returned for troubleshooting. |
| code | Int | 200 | The error code. |
Note productId and customerCommonQuestionId, see the Excel sheet provided by Alibaba Cloud technical support.
Request example
https://workorder.aliyuncs.com/?Action=Add
&productId=12
&content=This is the body of the ticket.
&aliUid=1018******9522Response example
{
"message": "successful",
"data": "8M***UY",
"code": "200",
"success": true
}Error codes
| HttpCode | Error code | Error message | Description |
| 200 | SUCCESS | successful | The request was processed successfully. |
| -121 | ILLEGAL_AUTH | illegal auth | You do not have the required permissions. |
| -101 | ILLEGAL_PARAM | illegal parameter, param is xxx | The parameter xxx failed the validation. |
| -104 | ILLEGAL_PARAM_EMPTY | xxx must not be null or empty | The parameter cannot be empty. |
| -153 | SYSTEM_BUSY | the system is busy | A system exception occurred. |
该文章对您有帮助吗?