Skip to main content
POST
/
api2
/
v1
/
files
Upload file
curl --request POST \
  --url https://cloud.memsource.com/web/api2/v1/files \
  --header 'Authorization: <api-key>' \
  --header 'Content-Disposition: <content-disposition>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>"
}
'
{
  "name": "<string>",
  "size": 123,
  "type": "<string>",
  "uid": "<string>"
}

Authorizations

Authorization
string
header
required

Get a token from auth/login endpoint and then pass it in the Authorization HTTP header in every subsequent API call. For more information visit our help center.

Headers

Content-Disposition
string
required

must match pattern ((inline|attachment); )?filename\*=UTF-8''(.+)

Body

Remote file to upload; url holds the source URL to download from

url
string

Remote URL to download the file from

Response

Created

name
string
read-only

File name

size
integer<int64>
read-only

File size in bytes

type
string
read-only

File type

uid
string
read-only

Unique identifier used in API paths