Skip to main content

Upload a Multipart File

Request

This method can be used to upload an attachment as a multipart file.

Query
purposestring

Purpose of the file is uploaded. [ ex. LOA is for Cross connect, PO is for Purchar order ]

Enum:"LOA""PO_DOCUMENT"
Headers
Authorizationstring, >= 1required

Specify the Access token with prefix 'Bearer '.

Bodymultipart/form-datarequired
uploadFilestring, (binary)required

The file to be uploaded

Payload
{
  "uploadFile": "string"
}

Responses

Bodyapplication/json
attachmentIdstring, (uuid)required

Unique Identifier for the attachment

Example:"56d10de6-f2c0-4edd-ba29-b70736aa2093"
attachmentNamestringrequired

File name of the attachment

Example:"Example_Invoice.pdf"
attachmentTypestringrequired

Extension of the document

Example:"application/pdf"
attachmentSizenumber, [ 0 .. 1000000000 )required

size of the attachment in bytes

Default:0
Example:259387
createdDatestring, (date-time)required

Created date

Example:"2017-01-31T09:03:08.340Z"
createdBystringrequired

User key of the author of the attachment

Example:"john.doe@example.com"
lastUpdatedDatestring, (date-time)required

Last accessed date for the record

Example:"2017-04-06T17:10:44.807Z"
Response
{ "attachmentId": "56d10de6-f2c0-4edd-ba29-b70736aa2093", "attachmentName": "Example_Invoice.xlsx", "attachmentType": "xlsx", "attachmentSize": 259387, "createdDate": "2017-01-31T09:03:08.340Z", "createdBy": "john.doe@example.com", "lastUpdatedDate": "2017-04-06T17:10:44.807Z" }
Was this page helpful?