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>
PUT
secured

Description

Replace car video

Format

json (application/json)

Methods

PUT

Mask parameters

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

Request

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

Same body as POST:
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 -X PUT -F "video=@520460376.mp4" \
     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

200 (Video updated)
400 (Bad Request)
401 (Invalid authentication)
404 (Car with web id 520460376 doesn't exist)
413 (Video is too large)
415 (Only mp4 videos are accepted)

Example response

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