Get Files preferences
GET
/api/v1/files/preferences
const url = 'https://example.com/api/v1/files/preferences';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/files/preferences \ --header 'Authorization: Bearer <token>'Requires a signed-in User with the data scope. It returns 403 when access is denied or 409 when the saved preferences are invalid. Route: /api/v1/files/preferences. Inputs: . Safe reads can use bounded retries.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Media typeapplication/json
Visibility preferences for ordinary Files listings.
object
show_dot_files
required
Show names that start with U+002E in the User’s Home.
boolean
show_sidecar_files
required
Show paired XMP and Apple AAE sidecar files as separate entries.
boolean
Examplegenerated
{ "show_dot_files": true, "show_sidecar_files": true}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" }}