---
title: "Apply Resources"
method: POST
path: "/internal/config/apply"
tags: ["internal", "internal-config"]
---

# Apply Resources

`POST /internal/config/apply`

Parse and apply (or dry-run) one or more YAML resource documents.
Auth enforced by the parent /internal router (validate_admin_role).

## Request body

- ApplyRequest — Raw YAML string containing one or more resource documents.
  - `documents` string, required
  - `dry_run` boolean

## Response `200`

Successful Response

- ApplyResponse
  - `dry_run` boolean, required
  - `results` ResourceApplyResult[], required
    - `kind` string, required
    - `name` string, required
    - `namespace` string, uuid, required
    - `action` 'created' | 'updated' | 'unchanged' | 'invalid' | 'error', required
    - `uid` string, uuid, nullable
    - `messages` string[]
    - `changed_fields` FieldDiff[]
      - `field_name` string, required
      - `before` unknown
      - `after` unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/kobaltlabs/apis/fastapi.md) · [All operations](https://skmtc.dev/kobaltlabs/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kobaltlabs/fastapi/revisions/3ff4c0bd276b/schema)
