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 Codes.
Error Code
For details about error codes, see Historical Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.