Flights

Change every person with a Future-* status to Active

Changed on

Accepts any status beginning with "Future-". Reads _design/basic/_view/all_by_status_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. Matched people who are on a flight are still changed and listed in assignedToFlight.

post/flights/future-status/activate

Request

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

Request body

statusstring required

Any flight status that begins with Future-

Response

Every matching person was saved, including when nobody had the status

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