---
title: "Update User Setting"
method: POST
path: "/api/user/setting"
tags: ["User"]
---

# Update User Setting

`POST /api/user/setting`

## Request

- Base URL: `https://api.unorouter.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.unorouter.com/api/user/setting`
- Auth: one of:
  - API key in header `Authorization` and API key in header `New-Api-User`
  - API key in header `New-Api-User` and API key in cookie `session`

## Request body

- UpdateUserSettingRequest: UpdateUserSettingRequest schema
  - `accept_unset_model_ratio_model` boolean, required
  - `bark_url` string
  - `channel_notify_enabled` boolean, nullable
  - `gotify_priority` integer
  - `gotify_token` string
  - `gotify_url` string
  - `notification_email` string
  - `notify_type` string, required
  - `quota_warning_enabled` boolean, required
  - `quota_warning_threshold` number, double, required
  - `record_ip_log` boolean, required
  - `upstream_model_update_notify_enabled` boolean, nullable
  - `webhook_secret` string
  - `webhook_url` string

## Response `200`

OK

- MessageResponse
  - `message` string, required
  - `success` boolean, required

## Changes

- **2026-10-29** `cce00298fee5`: 1 info
  - added the new optional request property `channel_notify_enabled`

[Operation history](https://skmtc.dev/unorouter/apis/new-api/changes/api/user/setting/post.md)

---

[API](https://skmtc.dev/unorouter/apis/new-api.md) - [All operations](https://skmtc.dev/unorouter/apis/new-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unorouter/apis/new-api/revisions/1b50ada14f59?raw)
