---
title: "Apply Dome Config"
method: POST
path: "/v1/dome-configs/{config_id}/apply"
tags: ["Dome", "dome-configs"]
---

# Apply Dome Config

`POST /v1/dome-configs/{config_id}/apply`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/vijilai/apis/vijil-console-api-combined/docs/v1/dome-configs/:config_id/apply/post.ts> (a function with typed inputs; its response is checked against the schema)

Apply a saved dome config: promotes config_pending.json to config.json and binds it to the agent.

Backs up the existing config.json as {config_id}_config.json, promotes
config_pending.json to config.json, and sets the agent's dome_config_id
and protection_status to domed.

## Path parameters

- `config_id` string, uuid, required

## Query parameters

- `team_id` string, uuid, required: Team ID (required)

## Response `200`

Successful Response

- DomeConfigResponse: API response model for Dome configuration. ``id`` and optional ``agent_id`` are top-level fields. ``config_body`` is the guard configuration dict (Dome-facing payload). Other metadata (e.g. team_id, timestamps, created_by) is included in the wire shape as returned by the domain model's ``to_wire()`` — see OpenAPI schema for the full response shape.
  - `id` string, uuid, required
  - `status` string
  - `agent_id` string, uuid, nullable
  - `config_body` object
  - `dome_instance_url` string, nullable
  - `created_at` integer, required
  - `created_by` string, uuid, required
  - `updated_at` integer, nullable
  - `updated_by` string, uuid, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/vijilai/apis/vijil-console-api-combined.md) - [All operations](https://skmtc.dev/vijilai/apis/vijil-console-api-combined/llms.txt) - [OpenAPI document](https://skmtc.dev/vijilai/apis/vijil-console-api-combined/revisions/a8b2ee2b2d06?raw)
