---
title: "Set a system config"
method: POST
path: "/admin/configs"
tags: ["Admin"]
---

# Set a system config

`POST /admin/configs`

## Request

- Base URL: `https://api.testnet.rise.trade`
- URL: `https://api.testnet.rise.trade/admin/configs`
- Auth: none required
- TypeScript: <https://skmtc.dev/rise/apis/risex-rest-api/docs/admin/configs/post.ts> (a function with typed inputs; its response is checked against the schema)

Set a system config value in the database

## Request body

- ApiSetSystemConfigRequest
  - `key` string
  - `value` string

## Response `200`

A successful response.

- ApiSetSystemConfigResponse
  - `config` ApiSystemConfig
    - `key` string
    - `value` string
    - `created_at` string, int64
    - `updated_at` string, int64

## Other responses

- `default`: An unexpected error response.

## Changes

- **2026-11-03** `98eabcd6a6ad`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rise/apis/risex-rest-api/changes/admin/configs/post.md)

---

[API](https://skmtc.dev/rise/apis/risex-rest-api.md) - [All operations](https://skmtc.dev/rise/apis/risex-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rise/apis/risex-rest-api/revisions/98eabcd6a6ad?raw)
