sfomuseum.you.shoebox.addObject

Description

Add an object 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.
  • object_id (int64) — A valid SFO Museum object ID (required)

Errors

In addition to default error codes common to all methods this API method defines the following additional error codes:

  • 900 — Object not found
  • 901 — Failed to add object 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.addObject" -F "access_token=<TOKEN>"  -F "object_id=<OBJECT_ID>"