Downloading Work Item Attachments by ID
Function
This API is used to download work item attachments by ID.
Calling Method
For details, see Calling APIs.
URI
GET /v1/ipdprojectservice/projects/{project_id}/attachments/download/{id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Definition: 32-character UUID of a project, which uniquely identifies a project. Obtain the value of this parameter from the project_id field in the response body of the Querying the Project List API. Constraints: Regular expression: ^[A-Za-z0-9]{32}$ Options: N/A Default value: N/A |
id |
Yes |
String |
Attachment ID. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
- |
File |
Attachment. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
Example Requests
{url}/v1/ipdprojectservice/projects/68158c24d6d14e48bab08befefae150f/attachments/download/984773880527626241
Example Responses
Status code: 400
Common error response.
{ "error_code" : "PM.02174103", "error_msg" : "No permission." }
Status Codes
Status Code |
Description |
---|---|
200 |
Attachment. |
400 |
Common error response. |
Error Codes
See 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