---
title: "Upload Vehicle Photos"
method: POST
path: "/api/vehicles/{vehicle_id}/photos"
tags: ["Vehicles (Protected)"]
---

# Upload Vehicle Photos

`POST /api/vehicles/{vehicle_id}/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

## Path parameters

- `vehicle_id` integer, required

## Headers

- `x-api-token` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/multigest/apis/multigest-protected-api.md) · [All operations](https://skmtc.dev/multigest/apis/multigest-protected-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/multigest/multigest-protected-api/revisions/8492136eefc5/schema)
