Skip to main content
POST
Create Vehicle

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

fields
string

Comma-separated list of fields to include in the response. Supports dot notation for nested projection (e.g. id,name,user.email,trips.route.id). Unknown fields are silently dropped.

Body

application/json

Create vehicle payload

licensePlate
string
required

License plate

Example:

"ABC1D23"

model
string
required

Vehicle model

Example:

"Sprinter"

type
enum<string>
required

Vehicle type

Available options:
VAN
Example:

"VAN"

floorCount
enum<string>
required

Floor count

Available options:
FIRST,
SECOND
Example:

"FIRST"

registrationNumber
string | null

Registration number

Example:

"RN-123456"

manufacturer
string | null

Manufacturer

Example:

"Mercedes-Benz"

year
integer | null

Manufacturing year

Example:

2024

serviceType
string | null

Service type

Example:

"INTERCITY"

features
string[]

Vehicle features

Example:
seatTypes
object[]

Seat type catalog with nested seats

Minimum array length: 1

Response

Created

Vehicle

vehicleId
string<uuid>
required

Vehicle identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3a"

cooperativeId
string<uuid>
required

Cooperative identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3a"

licensePlate
any
required

License plate

Example:

"ABC1D23"

model
string
required

Vehicle model

Example:

"Sprinter"

type
enum<string>
required

Vehicle type

Available options:
VAN
Example:

"VAN"

features
string[]
required

Vehicle features

Example:
floorCount
enum<string>
required

Floor count

Available options:
FIRST,
SECOND
Example:

"FIRST"

status
enum<string>
required

Vehicle status

Available options:
ACTIVE,
INACTIVE,
BLOCKED
Example:

"ACTIVE"

createdAt
string<date-time>
required

Created at

Example:

"2026-01-01T00:00:00.000Z"

updatedAt
string<date-time>
required

Updated at

Example:

"2026-01-01T00:00:00.000Z"

seatTypes
object[]
required

Seat types

seats
object[]
required

Seats

registrationNumber
string | null

Registration number

Example:

"RN-123456"

manufacturer
string | null

Manufacturer

Example:

"Mercedes-Benz"

year
integer | null

Manufacturing year

Example:

2024

serviceType
string | null

Service type

Example:

"INTERCITY"

createdBy
string<uuid> | null

Created by

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3e"

updatedBy
string<uuid> | null

Updated by

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3e"

deletedBy
string<uuid> | null

Deleted by

Example:

null