Uploading an Attachment
Function Description
Users can upload attachments such as screenshots when submitting a service ticket.
URI
POST /v1.0/servicerequest/case/accessory
Request
Request Parameters
| Parameter | Mandatory | Type | Value Range | Description |
|---|---|---|---|---|
| accessoryName | Yes | String | 512 | Specifies the attachment name. |
| accessoryData | Yes | byte[] | - | Specifies the attachment content. The maximum file size is 2 MB, and supported file formats include JPG, JPEG, BMP, PNG, GIF, TXT, DOC, DOCX, RAR, ZIP, PDF, XLS, and XLSX. |
| accessoryFrom | Yes | String | 32 | Specifies the attachment source. message incident feedback |
Request Example
{
------WebKitFormBoundarynm7SNCD8ZcLOjQHw Content-Disposition: form-data; name="accessoryData"; filename="Chrysanthemum.jpg" Content-Type: image/jpeg ------WebKitFormBoundarynm7SNCD8ZcLOjQHw Content-Disposition: form-data; name="accessoryName" Chrysanthemum.jpg ------WebKitFormBoundarynm7SNCD8ZcLOjQHw Content-Disposition: form-data; name="accessoryFrom" incident ------WebKitFormBoundarynm7SNCD8ZcLOjQHw Content-
} Response Message
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| accessoryId | String | Specifies the attachment ID. |
Example Response
{
"accessoryId": "xxx"
} Status Code
For details about status codes, see Status Code.
Error Code
For details about error codes, see Historical Error Codes.
Last Article: Querying Service Ticket Details
Next Article: Downloading an Attachment
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.