GetWorkitemFile
Retrieves the file information of a work item, such as image information in the description of the work item.
Try it now
Test
RAM authorization
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 |
| workitemFile |
object |
The file object. |
|
| id |
string |
The file ID. |
sddrdfdf123df |
| name |
string |
The file name. |
ddc.pdf |
| suffix |
string |
The file name extension. |
|
| 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.