Vehicles (Protected)

Upload Vehicle Photos

Upload photos for a vehicle.

  • Uploads images to S3 bucket under {company_name}/{vehicle_id}/ prefix
  • Saves photo records to Localizacaofotos table
  • First photo (ordem=1) is set as main photo on Viatura.bucketurl

Args: vehicle_id: Vehicle ID files: List of image files to upload replace_existing: If True, deletes all existing photos before upload

post/api/vehicles/{vehicle_id}/photos

Request

  • Base URL
    https://api.multigest.pt (the document declares no server; this is the origin it was published from)
  • URL
    https://api.multigest.pt/api/vehicles/{vehicle_id}/photos
  • Auth
    API key in header x-api-token and API key in header x-origin-verify

Path parameters

vehicle_idinteger required

Headers

x-api-tokenstring nullable

Request body multipart/form-data

filesstring[] required

Image files to upload

replace_existingboolean

Delete existing photos before upload

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 21 revisions of this API.