---
title: "update privileges config"
method: PUT
path: "/answer/admin/api/setting/privileges"
tags: ["admin"]
---

# update privileges config

`PUT /answer/admin/api/setting/privileges`

update privileges config

## Request body

- SchemaUpdatePrivilegesConfigReq
  - `custom_privileges` ConstantPrivilege[]
    - `key` string
    - `label` string
    - `value` integer
  - `level` 1 | 2 | 3 | 99, required

## Response `200`

OK

- HandlerRespBody
  - `code` integer — http code
  - `data` unknown
  - `msg` string — response message
  - `reason` string — reason key

---

[API](https://skmtc.net/apache/apis/apache-answer.md) · [All operations](https://skmtc.net/apache/apis/apache-answer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/apache/apache-answer/versions/e9c2980e6571/schema)
