Set Files preferences
const url = 'https://example.com/api/v1/files/preferences';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"show_dot_files":true,"show_sidecar_files":true}'};
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/files/preferences \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "show_dot_files": true, "show_sidecar_files": true }'Requires a signed-in User with the data scope. It returns 400 for invalid input, 403 when access is denied, 409 when saved settings conflict, 413 when the request is too large, or 507 when the change cannot be stored. Route: /api/v1/files/preferences. Inputs: . Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Replace the two Files visibility preferences.
object
Show names that start with U+002E in the User’s Home.
Show paired XMP and Apple AAE sidecar files as separate entries.
Examplegenerated
{ "show_dot_files": true, "show_sidecar_files": true}Responses
Section titled “Responses”Visibility preferences for ordinary Files listings.
object
Show names that start with U+002E in the User’s Home.
Show paired XMP and Apple AAE sidecar files as separate entries.
Examplegenerated
{ "show_dot_files": true, "show_sidecar_files": true}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}