---
title: "modify user profiles"
method: PATCH
path: "/users/{user_id}/_webvpn"
tags: ["User"]
---

# modify user profiles

`PATCH /users/{user_id}/_webvpn`

## Path parameters

- `user_id` integer, required

## Request body

- UserModifyModel
  - `config` UserUserConfigModel
    - `notify` string[]
    - `show_folded` string
  - `nickname` string

## Response `200`

OK

- ModelsUser
  - `config` ModelsUserConfig
    - `notify` string[] — used when notify
    - `show_folded` string — 对折叠内容的处理 fold 折叠, hide 隐藏, show 展示
  - `default_special_tag` string
  - `favorite_group_count` integer
  - `has_answered_questions` boolean
  - `id` integer — / base info
  - `is_admin` boolean — get from jwt
  - `joined_time` string
  - `nickname` string
  - `permission` object
    - `admin` string — 管理员权限到期时间
    - `offense_count` integer
    - `silent` object — key: division_id value: 对应分区禁言解除时间
  - `special_tags` string[]
  - `user_id` integer

---

[API](https://skmtc.net/opentreehole/apis/open-tree-hole.md) · [All operations](https://skmtc.net/opentreehole/apis/open-tree-hole/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opentreehole/open-tree-hole/versions/a91f11ffe9a4/schema)
