Call the CreateUploadFileJob operation to create an attachment Upload task.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Parameters

Parameter Type Is it required? Example Description
FileSource String Yes datacorrect

The purpose of uploading attachments. the valid values and descriptions are as follows:

  • datacorrect : data change ticket
  • order_info_attachment : ticket attachment
  • big-file : Batch Data import
  • sqlreview : supports batch operation moderation
FileName String Yes test.sql

The name of the file.

Note It must end with TXT or SQL, for example, test.txt.
UploadURL String Yes https://xxx/test.sql

Upload an attachment without using this link. only HTTP and HTTPS links are supported.

Note This feature allows you to upload objects (copybject) to a bucket (// ucket) and obtain the sharing permission permission of the objects. For more information, see Share Files .
Tid Long No 1

The tenant has expired.

Note The information of the tenant's chart is taken from the avatar in the upper-right corner of the system. For more information, see View tenant information .
RegionId String No cn-hangzhou

Select the service region of the destination region to call this operation. For more information about the valid values, see switchegionfigure parameter description .

Note select based on the location of the application nearby.

return data

Parameter Type Example Description
RequestId String 4E1D2B4D-3E53-4ABC-999D-1D2520B3471A

The error message returned because the request already exists.

Success Boolean true

Whether the request is successful.

ErrorMessage String UnknownError

Error message.

ErrorCode String UnknownError

Error code.

JobKey String 65254a4c1614235217749100e

The upload attachment task was able to query the attachment Upload progress and task details. For more information, see GetUserUploadFileJob .

Examples

Sample requests


     http(s)://dms-enterprise.aliyuncs.com/? descriileoource=datacorrect &FileName=test.sql&uploploadgrouype=uploploadspec&uploploadspec=https:// xxx/test. SQL&uploid=-1&common request parameters 
   

Sample success responses

XML Format


     HTTP/1.1 200 OK Content-Type:application/xml <CreateUploadFileJobResponse> <JobKey>7000005000007000009000000</JobKey> <RequestId>44355324-9534-4AF4-B7AA-8EDE3C767889</RequestId> <Success>true</Success> </CreateUploadFileJobResponse> 
   

JSON Format


     HTTP/1.1 200 OK Content-Type:application/json { "JobKey" : "7000005000007000009000000", "RequestId" : "44355324-9534-4AF4-B7AA-8EDE3C767889", "Success" : true } 
   

Error code

Access error Center For more information, see error codes.