Flights

Mark a flight completed and its active people as Flown

Changed on

Matches people by flight name (flight.id) using _design/basic/_view/all_by_flight_and_name. Each changed person gets a flight.history status line and updated metadata.updated_at and metadata.updated_by, the same as an individual status edit. The flight is marked completed only after every person save succeeds.

post/flights/{id}/complete

Request

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

Path parameters

idstring required

Flight document ID

Response

Every qualifying person and the flight were saved, including when nobody needed changing

fromStatusstring

Status people were changed from

toStatusstring

Status people were changed to

assignedToFlightstring[]

POST /flights/future-status/activate only. Ids of matched people whose flight.id was present and not "None" when they were read. The list is informational and does not change 200 versus 207.

Changes