TB.One > Import & Export > REST Calls & the API > Media Data Push via API

Media Data Push via API

With TB.One's REST API, you can upload media files. The response time of the REST call depends on the file size.

THE REST CALL

TIP:
Structure of the REST URI for the live system: https://rest.core.tradebyte.com/ACCOUNT-NR/sync/media/FILENAME

Structure of the REST URI for staging: https://reststaging.core.tradebyte.com/ACCOUNT-NR/sync/media/FILENAME

"ACCOUNT-NR" is a placeholder for your TB.One account number.

"FILENAME" is a placeholder for the name of the file you wish to upload.

ATTENTION:

The size limit for files provided this way is 150 MB.

You must use the file format ZIP to upload media. Even if you only want to upload a single image file, it must be ZIP-compressed.

Files names must start with "MEDIA_" (for example, "MEDIA_20260215_102451.zip")

SEND MEDIA DATA

METHOD

POST

Sends a file

ACCOUNT-NR

Your account number

To your TB.One system

TARGET

sync/media

File contains media data to be imported

EXAMPLE

https://rest.core.tradebyte.com/9951/sync/media/MEDIA_20260215_102451.zip

 

After pushing your file, the API will return a status message with a status code in the HTTP header.

Possible http status code header messages:

bullet_20x10200 (all codes starting with 2xx): Call/processing successful

bullet_20x10400 (all codes starting with 4xx): Call not successful/request faulty