---
title: "Update current user privacy settings"
method: PATCH
path: "/p1/privacy"
tags: ["user"]
---

# Update current user privacy settings

`PATCH /p1/privacy`

## Request body

- object
  - `preferences` object
    - `showNsfwSubject` boolean
  - `settings` object
    - `commentNotification` 'all' | 'friends' | 'none'
    - `follow` 'all' | 'none'
    - `friendNotification` 'all' | 'none'
    - `mentionNotification` 'all' | 'friends' | 'none'
    - `privateMessage` 'all' | 'friends' | 'none'
    - `timelineCollectReply` 'all' | 'friends' | 'none'
    - `timelineReply` 'all' | 'friends' | 'none'

## Response `200`

Default Response

- object
  - `preferences` object, required
    - `allowNsfw` boolean, required
    - `canSetNsfwSubject` boolean, required
    - `showNsfwSubject` boolean, required
  - `settings` object, required
    - `commentNotification` 'all' | 'friends' | 'none', required
    - `follow` 'all' | 'none', required
    - `friendNotification` 'all' | 'none', required
    - `mentionNotification` 'all' | 'friends' | 'none', required
    - `privateMessage` 'all' | 'friends' | 'none', required
    - `timelineCollectReply` 'all' | 'friends' | 'none', required
    - `timelineReply` 'all' | 'friends' | 'none', required

## Other responses

- `400` — default error response type
- `401` — default error response type
- `403` — default error response type
- `500` — 意料之外的服务器错误

---

[API](https://skmtc.net/bangumi/apis/bangumi-private-api.md) · [All operations](https://skmtc.net/bangumi/apis/bangumi-private-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bangumi/bangumi-private-api/versions/79dbcbd374a3/schema)
