empty_legs

Create an Empty Leg record

Changed on

Aircraft reference

On POST/PUT, supply aircraft with an id, registration_number, or exact current slug. Registration numbers accept 3–10 characters, case-insensitive, with the existing optional dash matching. All supplied identifiers must match one active charter aircraft; aircraft: null is rejected.

Updates and response

Assigning an aircraft copies its type and company to this record. PATCH without an aircraft reference keeps these links. Nested catalog objects are read-only. Only the record owner may update or delete it. The response includes the complete object. converted_prices uses current rates and may contain null values.

post/v3/empty_legs/

Request

  • Base URL
    https://api.aviapages.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.aviapages.com/v3/empty_legs/
  • Auth
    API key in header Authorization

Request body

idinteger required
registration_numberstring

Deprecated. Supply this field or aircraft on POST/PUT. Case-insensitive; dash is optional.

from_date_utcstring date-time required

From date available in format "yyyy-mm-ddThh:mm"

to_date_utcstring date-time required

To date available in format "yyyy-mm-ddThh:mm"

commentstring nullable

Commentary about availability record

pricenumber double nullable

Flight price

currency_codestring nullable

Response

idinteger required
registration_numberstring nullable required

Aircraft registration number

aircraft_typestring nullable required
companystring nullable required

Company name

from_date_utcstring date-time required

From date available in format "yyyy-mm-ddThh:mm"

to_date_utcstring date-time required

To date available in format "yyyy-mm-ddThh:mm"

commentstring nullable required

Commentary about availability record

pricenumber double nullable required
currency_codestring nullable required

Price currency (3 digit currency code)

created_atstring date-time required
updated_atstring date-time required

Changes

    • breaking

      added the new required request property

    • breaking

      added to the request property allOf list

    • breaking

      added to the / request property allOf list

    • breaking

      the request property became not nullable

    • breaking

      the request property became required

    • breaking

      the response's property type changed from object to no type for status

    • breaking

      removed the required property / from the response with the status

    • breaking

      removed the required property from the response with the status

    • warning

      removed from the request property allOf list

    • warning

      removed from the / request property allOf list

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • info

      the request property became optional

    • info

      request property deprecated

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      the response optional property became read-only for the status

    • info

      the response optional property became read-only for the status

    • info

      the response optional property became read-only for the status

    • info

      the response optional property became read-only for the status

    • info

      the response optional property became read-only for the status

    • info

      added to the response property allOf list for the response status

    • info

      added to the response property allOf list for the response status

    • info

      removed from the response property allOf list for the response status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status

    • info

      response property aircraft_type deprecated

    • info

      response property company deprecated

    • info

      response property registration_number deprecated

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      the response required property became read-only for the status

    • info

      the response required property became read-only for the status

    • info

      the response required property became read-only for the status