Help Center/ CodeArts Req/ API Reference/ API/ IPD Attachment Management/ Downloading Work Item Attachments by ID
Updated on 2025-09-10 GMT+08:00

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}

Table 1 Path Parameters

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

Table 2 Response body parameters

Parameter

Type

Description

-

File

Attachment.

Status code: 400

Table 3 Response body parameters

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.