ListWorkitemAttachments

Updated at:

Retrieves the list of attachments for a work item.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

GET /organization/{organizationId}/workitem/{workitemIdentifier}/attachments HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

organizationId

string

No

The enterprise identifier, also known as the enterprise ID. It is a string that can be obtained from the Yunxiao URL, such as https://devops.aliyun.com/organization/[OrganizationId].

60de7a6852743a5162b5f957

workitemIdentifier

string

No

The work item ID, which is the unique identifier of the work item.

11234455454355

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

Response elements

Element

Type

Description

Example

object

Schema of Response

requestId

string

Id of the request

F7B85D1B-D1C2-140F-A039-341859F130B9

errorMsg

string

The error message.

error

errorCode

string

The error code.

SYSTEM_UNKNOWN_ERROR

success

boolean

Indicates whether the request is successful.

  • true: The request is successful.

  • false: The request fails.

true

attachments

array<object>

The list of attachments.

object

The attachment.

fileIdentifier

string

The unique identifier of the file.

dflkjlsdddsdl234lkjfg

fileName

string

The name of the file.

Artifacts_1565193_1.tgz

fileSuffix

string

The file name extension.

tgz

size

string

The content size of the file, in bytes.

50

url

string

The download URL.

http://grace-share.oss-cn-hangzhou.aliyuncs.com/qf%2Fheap.bin?Expires=1675750082&OSSAccessKeyId=xxxxxxxx&Signature=xxxxx%3D

gmtCreate

integer

The creation time.

1545726028000

creator

string

The Alibaba Cloud account ID of the creator.

237109

Examples

Success response

JSON format

{
  "requestId": "F7B85D1B-D1C2-140F-A039-341859F130B9",
  "errorMsg": "error",
  "errorCode": "SYSTEM_UNKNOWN_ERROR",
  "success": true,
  "attachments": [
    {
      "fileIdentifier": "dflkjlsdddsdl234lkjfg",
      "fileName": "Artifacts_1565193_1.tgz",
      "fileSuffix": "tgz",
      "size": "50",
      "url": "http://grace-share.oss-cn-hangzhou.aliyuncs.com/qf%2Fheap.bin?Expires=1675750082&OSSAccessKeyId=xxxxxxxx&Signature=xxxxx%3D",
      "gmtCreate": 1545726028000,
      "creator": "237109"
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 Openapi.RequestError request error
403 Operate.NoPermission NoPermission You are not authorized to perform this operation.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.