Partial update of an Empty Leg record
Changed onAircraft 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.
Request
- Base URLhttps://api.aviapages.com (the document declares no server; this is the origin it was published from)
- URLhttps://api.aviapages.com/v3/empty_legs/{id}/
- AuthAPI key in header Authorization
Path parameters
Empty leg ID
Request body
Response
Changes
- breaking
added to the
request propertyallOflist - breaking
added to the
/request propertyallOflist - breaking
the request property
became not nullable - breaking
the
response's property type changed fromobjectto 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 propertyallOflist - warning
removed from the
/request propertyallOflist - 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
added the new optional request property
- info
request property
deprecated - 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 propertyallOflist for the response status - info
added to the
response propertyallOflist for the response status - info
removed from the
response propertyallOflist 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_typedeprecated - info
response property
companydeprecated - info
response property
registration_numberdeprecated - 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
- breaking