WorkitemAttachmentCreate

Updated at:

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

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

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: https://devops.aliyun.com/organization/{organizationId}.

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 dir value returned by the GetWorkitemAttachmentCreatemeta operation. You must successfully upload the file before calling this operation.

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

  • The error code that is returned when the request fails (that is, when success is false).

SYSTEM_UNKNOWN_ERROR

errorMessage

string

  • The error message that is returned when the request fails (that is, when success is false).

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.