Flights

Update a flight record

Changed on
put/flights/{id}

Request

  • Base URL: https://sshf-api-330507742215.us-central1.run.app
  • URL: https://sshf-api-330507742215.us-central1.run.app/flights/{id}
  • Auth: OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/v2/auth)

Path parameters

idstring required

Flight record ID

Request body

_idstring

Document ID

_revstring

Document revision

type'Flight' required

Document type, must be "Flight"

namestring required

Flight name (required, non-empty)

flight_datestring required

Flight date in YYYY-MM-DD format

capacityinteger required

Flight capacity (required, positive integer)

completedboolean

Whether the flight is completed

Response

Flight record updated successfully

_idstring

Document ID

_revstring

Document revision

type'Flight' required

Document type, must be "Flight"

namestring required

Flight name (required, non-empty)

flight_datestring required

Flight date in YYYY-MM-DD format

capacityinteger required

Flight capacity (required, positive integer)

completedboolean

Whether the flight is completed

Changes