---
title: "Save the user's preferences"
method: PUT
path: "/api/v4/users/{user_id}/preferences"
tags: ["preferences"]
---

# Save the user's preferences

`PUT /api/v4/users/{user_id}/preferences`

Save a list of the user's preferences.
##### Permissions
Must be logged in as the user being updated or have the `edit_other_users` permission.

## Path parameters

- `user_id` string, required

## Request body

- 38cb7293Preference[]
  - `user_id` string — The ID of the user that owns this preference
  - `category` string
  - `name` string
  - `value` string

## Response `200`

User preferences saved successful

- 38cb7293StatusOK
  - `status` string — Will contain "ok" if the request was successful and there was nothing else to return

## Other responses

- `400` — Invalid or missing parameters in URL or request body
- `401` — No access token provided
- `403` — Do not have appropriate permissions
- `404` — Resource not found

---

[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)
