mobilidade
Cadastrar veículo
Changed onCadastra um veículo para o CPF autenticado. Fluxo catálogo (brand_id+model_id), híbrido (brand_id + model_other sem model_id) ou Outro livre (brand_other/model_other+vehicle_type). URLs de foto devem ser HTTPS GCS. Se has_invoice=true, invoice_photo_url é obrigatória. Contato do dono (nome/telefone/e-mail) é enriquecido ao vivo via RMI a partir do owner_cpf — não enviar owner_* no body. registration_number é gerado pelo backend (formato RJ-E-XXXXXX).
post/citizen/{cpf}/vehicles
Request
- Base URL: http://localhost:8080/v1
- URL: http://localhost:8080/v1/citizen/{cpf}/vehicles
- Auth: API key in header Authorization
Path parameters
cpfstring required
CPF do cidadão (11 dígitos)
Request body
Response
Veículo criado
Example response
{
"registration_number": "RJ-E-000001"
}Changes
- info
endpoint added
- info