GetWorkitemFile

Updated at:

Retrieves the file information of a work item, such as image information in the description of the 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}/files/{fileIdentifier} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

organizationId

string

Yes

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

60811b5eed6e867404f6xxxx

workitemIdentifier

string

Yes

The work item ID, which is a unique identifier.

11234455454355

fileIdentifier

string

Yes

The unique identifier of the file.

dfsdfdsgdsfdsfff

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

ASSDS-ASSASX-XSAXSA-XSAXSAXS

errorMsg

string

The error message.

error

errorCode

string

The error code.

success

success

string

Indicates whether the API call was successful. Valid values:

  • true: The API call was successful.

  • false: The API call failed.

true

workitemFile

object

The file object.

id

string

The file ID.

sddrdfdf123df

name

string

The file name.

ddc.pdf

suffix

string

The file name extension.

pdf

size

integer

The content size of the file, in bytes.

10001

url

string

The download URL.

http://tmaestro-oss.oss-cn-hongkong.aliyuncs.com/thread_1682129288279.log

Examples

Success response

JSON format

{
  "requestId": "ASSDS-ASSASX-XSAXSA-XSAXSAXS",
  "errorMsg": "error",
  "errorCode": "success",
  "success": "true",
  "workitemFile": {
    "id": "sddrdfdf123df",
    "name": "ddc.pdf",
    "suffix": "pdf",
    "size": 10001,
    "url": "http://tmaestro-oss.oss-cn-hongkong.aliyuncs.com/thread_1682129288279.log"
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParam.ParamNotPresent The parameter is invalid. The parameter is invalid.
404 InvalidOrganization.NotFound The organization is not found. The organization is not found. Please check the organization ID.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.