mobilidade

Criar modelo (admin)

Changed on

Cadastra um modelo vinculado a brand_id com vehicle_type. ID gerado no backend; is_other=false.

post/admin/mobilidade/vehicle-models

Request

  • Base URL: http://localhost:8080/v1
  • URL: http://localhost:8080/v1/admin/mobilidade/vehicle-models
  • Auth: API key in header Authorization

Request body

brand_idstring required
namestring required
vehicle_type'bicicleta_eletrica' | 'autopropelido' | 'ciclomotor' required

Example request

{
  "brand_id": "brand_caloi",
  "name": "E-Vibe"
}

Response

Modelo criado

brand_idstring
deleted_atstring
idstring
is_otherboolean
namestring
vehicle_type'bicicleta_eletrica' | 'autopropelido' | 'ciclomotor'

Example response

{
  "brand_id": "brand_caloi",
  "id": "model_e-vibe",
  "name": "E-Vibe"
}

Changes