---
title: "更新当前用户的个性化设置"
method: PUT
path: "/auth/me/preferences"
tags: ["认证"]
---

# 更新当前用户的个性化设置

`PUT /auth/me/preferences`

按 PATCH 语义合并用户偏好（仅覆盖请求体里出现的字段，其余字段保持不变），
数据存放在 users.preferences (JSON)，跨设备/浏览器自动同步。

## Request body

- InternalHandlerUpdateMyPreferencesRequest
  - `last_active_tenant_id` integer — LastActiveTenantID lets the SPA persist "after a fresh login, drop me back into this workspace" across devices. Send a positive workspace id to set / replace, or 0 to clear. Membership is validated at next login, not here. Nil = field omitted from the PATCH and stays untouched.

## Response `200`

更新后的偏好

- object

## Other responses

- `400` — 请求参数错误
- `401` — 未授权

---

[API](https://skmtc.net/tencentblueking/apis/weknora-api.md) · [All operations](https://skmtc.net/tencentblueking/apis/weknora-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tencentblueking/weknora-api/revisions/6e297e21afca/schema)
