Upload file

Request
path Parameters
userId
required
string

QIMA client user id

docType
required
string

The document type of this attachment, like ORDER_ATT, which means order attachment

sourceId
required
string

The resource id that the attachment will be linked to, like inspection product id, order id etc.Use comma to concat multiple source ids, like id_1,id_2,id_3

Responses
200

Uploaded file meta info is returned

400

SourceId can't be blank

500

Error message returned

post/user/{userId}/doc-type/{docType}/source/{sourceId}/file
Request samples
curl -i -X POST \
  'https://qa-web-02.qima.com/user/{userId}/doc-type/{docType}/source/{sourceId}/file'
Response samples
application/json
{
  • "id": "string",
  • "srcId": "string",
  • "fileType": "string",
  • "fileName": "string",
  • "comments": "string",
  • "objectKey": "string",
  • "fileSize": 0,
  • "version": 0,
  • "s3Url": "string",
  • "createDate": "string",
  • "updateDate": "string"
}