Vehicle Status Catalog API
Manage the catalog of vehicle statuses (EstadoVehiculo) used to track vehicle availability and condition. Includes indicators for whether vehicles can be assigned in each status. Base Path:/estado-vehiculo
Endpoints
Create Vehicle Status
Request Body
Field Validations
- codigo (required): Unique, uppercase, no spaces
- nombre (required): Unique across active records
- permiteAsignacion (required): Boolean indicating if vehicle can be assigned in this status
- descripcion (optional): Max 250 characters
Response
Get Vehicle Status by ID
Path Parameters
- id_estado_vehiculo (integer, required): Vehicle status ID
Response
List Vehicle Statuses (Paginated)
Query Parameters
- pagina (integer, optional, default: 1): Page number (min: 1)
- por_pagina (integer, optional, default: 10): Records per page (min: 1, max: 100)
- codigo (string, optional): Filter by code (partial match)
- nombre (string, optional): Filter by name (partial match)
- permiteAsignacion (boolean, optional): Filter by assignment permission
- busqueda (string, optional): General search in code, name, and description
Response
List All Vehicle Statuses (No Pagination)
Query Parameters
- codigo (string, optional): Filter by code
- nombre (string, optional): Filter by name
- permiteAsignacion (boolean, optional): Filter by assignment permission
- busqueda (string, optional): General search
Response
Update Vehicle Status
Path Parameters
- id_estado_vehiculo (integer, required): Vehicle status ID
Request Body
Validations
- Record must exist and be active
- If changing
codigo, must be unique - If changing
nombre, must be unique
Response
Delete Vehicle Status
Path Parameters
- id_estado_vehiculo (integer, required): Vehicle status ID
Validations
- Record must exist and be active
- Cannot have active vehicles associated