Skip to main content
POST
Deactivate Route

Authorizations

Authorization
string
header
required

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

Path Parameters

routeId
string<uuid>
required

Route identifier

Example:

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

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.

Response

OK

Route

routeId
string<uuid>
required

Route identifier

Example:

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

cooperativeId
string<uuid>
required

Cooperative identifier

Example:

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

cooperative
object
required

Cooperative identity

transportOperator
object | null
required

Transport operator identity

originId
string<uuid>
required

Origin point identifier

Example:

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

destinationId
string<uuid>
required

Destination point identifier

Example:

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

distanceKm
number
required

Distance in kilometers

Required range: x >= 0
Example:

429.5

estimatedDuration
integer
required

Estimated duration in minutes

Example:

360

status
enum<string>
required

Route status

Available options:
PENDING_APPROVAL,
ACTIVE,
INACTIVE
Example:

"ACTIVE"

origin
object
required

Origin point

destination
object
required

Destination point

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"

transportOperatorId
string<uuid> | null

Origin transport operator identifier

Example:

null

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