---
title: "Write the server configuration"
method: POST
path: "/api/config"
tags: ["Configuration"]
---

# Write the server configuration

`POST /api/config`

Replaces the entire server configuration and restarts the system.
Returns a `task_id` for polling with `/api/restart_status`. Requires `admin`.

## Request body

- object
  - `config` object, required — New configuration object.

## Response `200`

Configuration saved; restart initiated.

- TaskId
  - `task_id` string, required — Opaque identifier that can be passed to a status endpoint.

## Other responses

- `400` — Bad request.
- `403` — Access denied.

---

[API](https://skmtc.dev/docassemble/apis/docassemble-api.md) · [All operations](https://skmtc.dev/docassemble/apis/docassemble-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/docassemble/docassemble-api/revisions/a75d7eea6826/schema)
