WebCars

Element

AnnonceLogs

Forms

TipcarsLogs

IframeViewCounter

TechnicalCertificateRequest

AdvertisingCars

Leads

Ip

OfferedCars

MobileDeLogs

ViewCounter

Aos

Eshop

SautoLogs

Cc

Marketing

MaternaSmsStatus

Callcentrum

WebLeads

LeadsFb

CarVideos

/v1/car-videos/<webId>
POST
secured

Description

Upload car video

Format

json (application/json)

Methods

POST

Mask parameters

<webId>
  • requirement: \d+
  • type: string
  • description: Car web id

Request

Authorization: Basic base64(username:password)
Content-Type: multipart/form-data

video = the mp4 file, max 20 MB (required)
note  = any metadata you want to keep with the video, plain text (optional)

curl -u user:password -F "video=@520460376.mp4" -F "note=AI spot v1" \
     https://api.autoesa.cz/v1/car-videos/520460376

The raw file can also be sent as the request body with
Content-Type: video/mp4, the note then goes into the ?note= query parameter.

Response codes

201 (Video uploaded)
400 (Bad Request)
401 (Invalid authentication)
404 (Car with web id 520460376 doesn't exist)
409 (Car already has a video, use PUT)
413 (Video is too large)
415 (Only mp4 videos are accepted)

Example response

{
    "status": "ok",
    "message": "Video uploaded.",
    "web_id": 520460376,
    "url": "https:\/\/www.autoesa.cz\/files\/car-videos\/520460376-8f3ac21b04.mp4"
}