Upload Photos or Videos

POST UPLOAD BYTES

The /upload bytes resource allows callers to upload images and videos with a multipart/form-data content type. Each uploaded file must not exceed a size of 100 MB for images and 250 MB for videos. This endpoint supports partial success scenarios. That is, the request will return successful and failed upload context.

https://edge.curalate.com/v1/upload/:dataSourceId

Parameters

None

Sample Response

{
	"data": {
		"images": [
			{
				"id": "YwBM0ugTukDSR5ZN98Uq1WhuaVE70wFnVh1XNAO1SCA=",
				"original": {
					"link": "https://edge.curalate.com/v1/img/YwBM0ugTukDSR5ZN98Uq1WhuaVE70wFnVh1XNAO1SCA="
				},
				"small": {
					"link": "https://edge.curalate.com/v1/img/YwBM0ugTukDSR5ZN98Uq1WhuaVE70wFnVh1XNAO1SCA=/w/150"
				},
				"medium": {
					"link": "https://edge.curalate.com/v1/img/YwBM0ugTukDSR5ZN98Uq1WhuaVE70wFnVh1XNAO1SCA=/w/300"
				},
				"large": {
					"link": "https://edge.curalate.com/v1/img/YwBM0ugTukDSR5ZN98Uq1WhuaVE70wFnVh1XNAO1SCA=/w/600"
				},
				"extraLarge": {
					"link": "https://edge.curalate.com/v1/img/YwBM0ugTukDSR5ZN98Uq1WhuaVE70wFnVh1XNAO1SCA=/w/1080"
				},
				"smallSquare": {
					"link": "https://edge.curalate.com/v1/img/YwBM0ugTukDSR5ZN98Uq1WhuaVE70wFnVh1XNAO1SCA=/sc/150x150?spatialTags=0.698000:0.690000,0.572000:0.512000,0.316000:0.468000,0.332000:0.676000,0.166000:0.706000"
				},
				"mediumSquare": {
					"link": "https://edge.curalate.com/v1/img/YwBM0ugTukDSR5ZN98Uq1WhuaVE70wFnVh1XNAO1SCA=/sc/300x300?spatialTags=0.698000:0.690000,0.572000:0.512000,0.316000:0.468000,0.332000:0.676000,0.166000:0.706000"
				},
				"largeSquare": {
					"link": "https://edge.curalate.com/v1/img/YwBM0ugTukDSR5ZN98Uq1WhuaVE70wFnVh1XNAO1SCA=/sc/600x600?spatialTags=0.698000:0.690000,0.572000:0.512000,0.316000:0.468000,0.332000:0.676000,0.166000:0.706000"
				},
				"extraLargeSquare": {
					"link": "https://edge.curalate.com/v1/img/YwBM0ugTukDSR5ZN98Uq1WhuaVE70wFnVh1XNAO1SCA=/sc/1080x1080?spatialTags=0.698000:0.690000,0.572000:0.512000,0.316000:0.468000,0.332000:0.676000,0.166000:0.706000"
				},
				"type": "photo"
			}
		],
		"videos": []
	},
	"errors": []
}