全部產品
Search
文件中心

Alibaba Cloud DevOps:ListWorkitemAttachments - 擷取工作項目附件列表

更新時間:Jul 07, 2026

服務存取點與授權資訊

產品

資源

要求的權限

專案協作

工作項目附件

唯讀

請求文法

Region版

GET https://{domain}/oapi/v1/projex/workitems/{id}/attachments

要求標頭

參數

類型

是否必填

描述

樣本值

x-yunxiao-token

string

個人存取權杖。

pt-0fh3****0fbG_35af****0484

請求參數

參數

類型

位置

是否必填

描述

樣本值

id

string

path

工作項目唯一標識。

請求樣本

Region版

curl -X 'GET' \
  'https://{domain}/oapi/v1/projex/workitems/{id}/attachments' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

返回參數

參數

類型

描述

樣本值

-

array

-

object

creator

object

id

string

使用者 id。

674d96abd497cd558d68****

name

string

名稱。

name-xxx

fileId

string

檔案 id。

985353d622cc8521793e08****

fileName

string

檔案名稱。

file-name-xxx

gmtCreate

string

建立時間。

gmtModified

string

修改時間。

id

string

id。

id-xxx

modifier

object

id

string

使用者 id。

674d96abd497cd558d68****

name

string

名稱。

name-xxx

size

integer

檔案大小。

1024

suffix

string

檔案尾碼。

.png

url

string

檔案下載地址,是個臨時的下載地址,有實效性。

https://xxx.test.com

返回樣本

[
    {
        "creator": {
            "id": "674d96abd497cd558d68****",
            "name": "name-xxx"
        },
        "fileId": "985353d622cc8521793e08****",
        "fileName": "file-name-xxx",
        "gmtCreate": "",
        "gmtModified": "",
        "id": "id-xxx",
        "modifier": {
            "id": "674d96abd497cd558d68****",
            "name": "name-xxx"
        },
        "size": 1024,
        "suffix": ".png",
        "url": "https://xxx.test.com"
    }
]

錯誤碼

訪問錯誤碼中心查看 API 相關錯誤碼。