WorkitemAttachmentCreate
This operation attaches a file to a work item, completing the three-step upload process. For information about the preceding steps, refer to the GetWorkitemAttachmentCreatemeta operation.
Try it now
Test
RAM authorization
Request syntax
POST /organization/{organizationId}/workitem/{workitemIdentifier}/attachment HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| organizationId |
string |
Yes |
The ID of your organization. You can find this ID in the Alibaba Cloud DevOps URL: |
5ebbc0228123212b59xxxxx |
| workitemIdentifier |
string |
Yes |
The unique identifier of the work item. |
11234455454355 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| fileKey |
string |
Yes |
The file key, which corresponds to the |
1106473328927498/1106473328927498/5ec071g0e5ij85fche8cddchje.xlsx |
| originalFilename |
string |
Yes |
The original full name of the uploaded file. |
xxx.tgz |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| requestId |
string |
The unique ID of the API request, used for troubleshooting purposes. |
F590C9D8-E908-5B6C-95AC-56B7E8011FFA |
| errorCode |
string |
|
SYSTEM_UNKNOWN_ERROR |
| errorMessage |
string |
|
InvalidTagGroup.IdNotFoundntraceId: 2137844496.4337.16624448853053831 |
| success |
string |
Indicates whether the request was successful. Valid values: 'true' and 'false'. |
true |
Examples
Success response
JSON format
{
"requestId": "F590C9D8-E908-5B6C-95AC-56B7E8011FFA",
"errorCode": "SYSTEM_UNKNOWN_ERROR",
"errorMessage": "InvalidTagGroup.IdNotFoundntraceId: 2137844496.4337.16624448853053831",
"success": "true"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.