sfomuseum.you.shoebox.addFlight
Description
Add a flight to a user's shoebox Try this method in the API Explorer.
HTTP Request method
POST
Arguments
- access_token (
string) — A valid OAuth2 access token (required) - format (
string) — The format in which to return the data. Supported formats are json, jsonp. The default format is json. - flight_id (
int64) — A valid SFO Museum flight ID (required)
Errors
In addition to default error codes common to all methods this API method defines the following additional error codes:
900— Flight not found901— Failed to add flight to shoebox
Example request — or take this API method for a spin
curl -X POST https://api.sfomuseum.org/rest/ -F "method=sfomuseum.you.shoebox.addFlight" -F "access_token=<TOKEN>" -F "flight_id=<FLIGHT_ID>"