Segments

Retrieve all AirTravelSegment

get

Retreive all AirTravelSegment that belong to a specific AirTravel

Authorizations
Path parameters
air_travel_idstringRequired

ID of the AirTravel

Example: 996501df-0bfc-4f95-954d-3a5d5dc48469
Query parameters
per_pageintegerOptional

limit of records per page

Example: 10
pageintegerOptional

page number

Example: 2
sort_bystringOptional

This parameter is used to sort the records by a specific field (flight_date,flight_number,flight_status,started_at,ended_at,created_at)

Example: type
sort_dirstringOptional

Order type(asc or desc)

Example: asc
Responses
200

Successful operation

application/json
get
/air-travel/{air_travel_id}/segments

Store an AirTravelSegment

post

Store an AirTravelSegment to a particular AirTravel

Authorizations
Path parameters
air_travel_idstringRequired

ID of the AirTravel

Example: 996501df-0bfc-4f95-954d-3a5d5dc48469
Body

Creates airtravel segment request body data

airline_idanyRequired

Airline ID for the airtravel segment

Example: 996501df-0bfc-4f95-954d-3a5d5dc48469
flight_dateanyRequired

Flight Date for the airtravel segment

Example: 2023-03-17
flight_numberanyOptional

Flight Number for the airtravel segment

Example: BA2490
flight_statusanyOptional

Flight Status for the airtravel segment

Example: completed
started_atanyOptional

Started At for the airtravel segment

Example: 2023-03-17 12:34:56
ended_atanyOptional

Ended At for the airtravel segment

Example: 2023-03-17 13:45:30
aircraftanyOptional

Aircraft for the airtravel segment

Example: {}
departure_idanyRequired

Departure ID for the airtravel segment

Example: 996501df-0bfc-4f95-954d-3a5d5dc48469
arrival_idanyRequired

Arrival ID for the airtravel segment

Example: 996501df-0bfc-4f95-954d-3a5d5dc48469
Responses
200

Successful operation

application/json
post
/air-travel/{air_travel_id}/segments

Retrieve an AirTravelSegment

get

Retrieve an AirTravelSegment that belongs to a particular AirTravel

Authorizations
Path parameters
air_travel_idstringRequired

ID of the AirTravel

Example: 996501df-0bfc-4f95-954d-3a5d5dc48469
idstringRequired

ID of the AirTravelSegment

Example: 996501df-0bfc-4f95-954d-3a5d5dc48469
Responses
200

Successful operation

application/json
get
/air-travel/{air_travel_id}/segments/{id}

Update an AirTravelSegment

put

Update an AirTravelSegment for a particular AirTravel

Authorizations
Path parameters
air_travel_idstringRequired

ID of the AirTravel

Example: 996501df-0bfc-4f95-954d-3a5d5dc48469
idstringRequired

ID of the AirTravelSegment

Example: 996501df-0bfc-4f95-954d-3a5d5dc48469
Body

Update airtravel segment request body data

airline_idanyRequired

Airline ID for the airtravel segment

Example: 996501df-0bfc-4f95-954d-3a5d5dc48469
flight_dateanyRequired

Flight Date for the airtravel segment

Example: 2023-06-12T17:30:21.000000Z
flight_numberanyOptional

Flight Number for the airtravel segment

Example: BA2490
flight_statusanyOptional

Flight Status for the airtravel segment

Example: completed
started_atanyOptional

Started At for the airtravel segment

Example: 2023-06-12T17:30:21.000000Z
ended_atanyOptional

Ended At for the airtravel segment

Example: 2023-06-12T17:30:21.000000Z
aircraftanyOptional

Aircraft for the airtravel segment

Example: {}
departure_idanyRequired

Departure ID for the airtravel segment

Example: 996501df-0bfc-4f95-954d-3a5d5dc48469
arrival_idanyRequired

Arrival ID for the airtravel segment

Example: 996501df-0bfc-4f95-954d-3a5d5dc48469
Responses
200

Successful operation

application/json
put
/air-travel/{air_travel_id}/segments/{id}

Delete an AirTravelSegment

delete

Delete an AirTravelSegment that belongs to a specific AirTravel

Authorizations
Path parameters
air_travel_idstringRequired

ID of the AirTravel

Example: 996501df-0bfc-4f95-954d-3a5d5dc48469
idstringRequired

ID of the AirTravelSegment

Example: 996501df-0bfc-4f95-954d-3a5d5dc48469
Responses
200

Successful operation

application/json
delete
/air-travel/{air_travel_id}/segments/{id}