TrackRecordPro API Documentation TrackRecordPro

upload endpoint

Summary

API Endpoint Address

https://api.trackrecordpro.co.uk/3.0/upload

Minimum Supported API Version3.0
Supported Methods

POST

Access LevelEveryone
DescriptionThis endpoint allows upload of files directly to the system. You must POST the file as raw data to this endpoint, which must be suffixed by a mandatory ID which is associated with a file record from the files endpoint. This ID is a UUID for security reasons.

POST upload

POST /3.0/upload HTTP/1.1

Details

To upload a file to the system, you must use this endpoint to send a file. POST the entire file, as raw binary, with the correct mime-type set. Once the file is uploaded, if it is accepted you will receive notification of the upload and the file will be visible via the filename entry on the files endpoint.

{
   "request": {
     "url": "\/3.0\/upload\/13cef708-a8db-11e7-bc5c-3417ebeecb23",
     "endpoint": "upload",
     "requested_version": "3.0",
     "api_version": 3,
     "request_method": "Post",
     "timestamp": 1507620850,
     "session": null
   },
   "response": {
     "uploaded_size": 14666,
     "uploaded_type": "PNG",
     "file": "files\/1\/e115630673387cbf71e611f061c84c68.png"
   }
}