Vehicles (Protected)

Update Vehicle

Update existing vehicle.

Business rules:

  • Cannot modify if belongs to different company
  • Quadro uniqueness validation if changing
  • Partial updates supported
  • fechado/datafecho are protected — only /fechar can change them (irreversible)
  • When Estado transitions to 5 (Suspenso) and unpublish_ads=true, the vehicle is removed from all websites and Integrazu portals after the state change.
put/api/vehicles/{vehicle_id}

Path parameters

vehicle_idinteger required

Query parameters

unpublish_adsboolean

When Estado transitions to 5 (Suspenso), also remove the vehicle from all websites and Integrazu portals.

When Estado transitions to 5 (Suspenso), also remove the vehicle from all websites and Integrazu portals.

Headers

x-api-tokenstring nullable

Request body

Matriculastring nullable
MatriculaSecundariastring nullable
code_matriculastring nullable
code_matricula_secundariastring nullable
Quadrostring nullable
Marcainteger nullable
Modelointeger nullable
Versaostring nullable
Kminteger nullable
Motorstring nullable
Cilindradastring nullable
Potenciastring nullable
Combustinteger nullable
Caixainteger nullable
Corinteger nullable
Lugaresinteger nullable
Portasinteger nullable
Pesostring nullable
Segmentointeger nullable
Subsegmentointeger nullable
Estadointeger nullable
Preçonumber nullable
ValorSelonumber nullable
RegimeIvainteger nullable
Dataentrstring date-time nullable
Datamatstring date-time nullable
Data_Impstring date-time nullable
data_mat_nacionalstring date-time nullable
ValInspstring date-time nullable
Forneceinteger nullable
Ponto_de_vendainteger nullable
current_park_location_idinteger nullable
Consignadoboolean nullable
Emprestadoboolean nullable
Seguroboolean nullable
Importadoboolean nullable
stockpartilhadoboolean nullable
hiddenboolean nullable
fechadoboolean nullable
datafechostring date-time nullable
Fotosstring nullable
bucketurlstring nullable
Observacoesstring nullable
IDeasydatainteger nullable
Estadoeasydatainteger nullable
referenceinteger nullable
version_idinteger nullable
gearbox_type_idinteger nullable
gearbox_shift_idinteger nullable
section_idinteger nullable
second_key_status'sim' | 'não' | 'requisitado' nullable

Response

Successful Response

IDinteger required
Matriculastring nullable
MatriculaSecundariastring nullable
code_matriculastring nullable
code_matricula_secundariastring nullable
Quadrostring nullable
Marcainteger nullable
Modelointeger nullable
Versaostring nullable
Kminteger nullable
Motorstring nullable
Cilindradastring nullable
Potenciastring nullable
Combustinteger nullable
Caixainteger nullable
Corinteger nullable
Lugaresinteger nullable
Portasinteger nullable
Pesostring nullable
Segmentointeger nullable
Subsegmentointeger nullable
Estadointeger nullable
Preçonumber nullable
ValorSelonumber nullable
PreçoPinturanumber nullable
RegimeIvainteger nullable
Dataentrstring date-time nullable
Datamatstring date-time nullable
Data_Impstring date-time nullable
data_mat_nacionalstring date-time nullable
ValInspstring date-time nullable
datafechostring date-time nullable
Forneceinteger nullable
Ponto_de_Vendainteger nullable
IDempresainteger required
current_park_location_idinteger nullable
fechadoboolean nullable
consignadoboolean nullable
Emprestadoboolean nullable
Seguroboolean nullable
Importadoboolean nullable
stockpartilhadoboolean nullable
hiddenboolean nullable
Fotosstring nullable
bucketurlstring nullable
Observacoesstring nullable
IDeasydatainteger nullable
Estadoeasydatainteger nullable
referenceinteger nullable
version_idinteger nullable
gearbox_type_idinteger nullable
gearbox_shift_idinteger nullable
section_idinteger nullable
second_key_status'sim' | 'não' | 'requisitado' nullable

Changes

No recorded changes to this endpoint across all 1 revision of this API.