---
title: "Update Preferences"
method: PUT
path: "/2/drive/{drive_id}/preferences"
tags: ["Drive > Settings"]
---

# Update Preferences

`PUT /2/drive/{drive_id}/preferences`

Updates the connected user preference for a drive.

## Path parameters

- `drive_id` integer, required

## Request body

- object
  - `color` string
  - `default_page` 'common' | 'dropbox' | 'favorite' | 'last_modified' | 'links' | 'my_shared' | 'private' | 'shared_with_me' | 'statistics' | 'trash'
  - `hide` boolean
  - `ui` object
    - `rag_ocr_promotion` boolean — Display a promotion message about the RAG OCR if the user has not seen it yet
    - `storage_limit_alert` boolean — Display an alert when storage limit has been reached
    - `storage_warning_alert` boolean — Display an alert when storage limit is about to be reached

## Response `200`

OK

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` boolean

## Other responses

- `400` — User not associated with drive
- `403` — Forbidden
- `503` — Service Unavailable

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
