Set Photos preferences
PUT
/api/v1/photos/preferences
const url = 'https://example.com/api/v1/photos/preferences';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"screenshot_destination":"photos"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/v1/photos/preferences \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "screenshot_destination": "photos" }'Requires a signed-in User. It chooses Photos or Documents as the screenshot destination and returns the saved preference. It returns 400 for an invalid value or 409 when settings changed. Route: /api/v1/photos/preferences. Inputs: . Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
screenshot_destination
required
string
Responses
Section titled “Responses”Media typeapplication/json
object
screenshot_destination
required
string
Example
{ "screenshot_destination": "photos"}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}