このページは、お客様の言語ではご利用いただけません。Huawei Cloudは、より多くの言語バージョンを追加するために懸命に取り組んでいます。ご協力ありがとうございました。
- Service Overview
- User Guide
-
API Reference
- Before You Start
- API Overview
- Calling APIs
- Application Examples
-
API v2 (Recommended)
- Agreement Management
- Attachment Management
- Service Ticket Management
- Service Ticket Permission Management
- Attachment Management
- Authorization Management
- Service Ticket Quota Management
-
Basic Ticket Configuration Query
- Querying Country/Region Code
- Querying Problem Type List
- Querying Additional Parameters
- Querying Problem Type Template
- Querying Service Ticket Category List
- Querying Product Type List
- Querying Region List
- Service Ticket Satisfaction Category List
- Querying Problem Severity List
- Querying Service Ticket Limits (Such As Limited CCs in an Email)
- Label Management
- Ticket Message Management
-
Ticket Query
- Querying Agency Information
- Querying Partner Service Ticket Permissions
- Statistics of Service Tickets in Various Statuses
- Querying Service Ticket Details
- Querying Service Ticket Operation Logs
- Querying Service Ticket CC
- Querying Service Ticket Status
- Querying Associated Partner Service Information
- Querying Service Ticket List Interface
- Querying Sub-User Information
- Management of Associated Tickets
- Verification Code Management
-
Historical APIs
- Creating a Service Ticket
- Querying Service Ticket List
- Querying Service Ticket Details
- Uploading an Attachment
- Downloading an Attachment
- Deleting an Attachment
- Adding a Message
- Service Evaluation
- Service Ticket Operations
- Querying Service Ticket Related Product
- Querying Service Ticket Problem Type
- Querying Templates
- Querying Regions
- Appendix
- Change History
- General Reference
Copied.
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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot