Skip to content

Initiate a multipart upload session and return an upload session ID.

POST/api/{version}/services/file_staging/upload
NameDescription
Acceptapplication/json (default) or application/xml
NameDescription
path
required
The absolute path, including file name, to place the file in the staging server. This path is specific to the authenticated user. Admin users can access the root directory. All other users can only access their own user directory.
size
required
The size of the file in bytes. The maximum file size is 500GB.
overwrite
optional
If set to true, Vault will overwrite any existing files with the same name at the specified destination.
curl -L -X POST -H "Authorization: {SESSION_ID}" \ -H 'Accept: application/json' \ -H 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'path=Cholecap-Commercial-2021.mp4' \ --data-urlencode 'size=32862312' \ --data-urlencode 'overwrite=true'\ https://myvault.veevavault.com/api/v26.1/services/file_staging/upload
{ "responseStatus": "SUCCESS", "data": { "path": "/Cholecap-Commercial-2021.mp4", "name": "Cholecap-Commercial-2021.mp4", "id": "31a6aba21bf6e0005b718407a78739e6", "expiration_date": "2020-12-14T23:30:43.000Z", "created_date": "2020-12-11T23:30:43.000Z", "last_uploaded_date": "2020-12-11T23:30:43.000Z", "owner": 275657, "uploaded_parts": 0, "size": 32862312, "uploaded": 0, "overwrite": true } }

Upon SUCCESS, the response includes the following information:

NameDescription
pathThe path to the file as specified in the request.
idThe upload session ID.
expiration_dateThe timestamp of when the upload session will expire.
created_dateThe timestamp of when the session was created.
last_uploaded_dateThe timestamp of the last upload in this session. Because the session was just created, this will be the same as the created_date.
ownerThe user ID of the Vault user who initiated the upload session.
uploaded_partsThe number of parts uploaded to the session so far. Because the session was just created, this will be 0.
sizeThe size of the file in bytes as specified in the request.
uploadedThe total size, in bytes, uploaded so far in the session. Because the session was just created, this will be 0.