---
title: "Configs Commit"
method: POST
path: "/variants/configs/commit"
tags: ["Variants"]
---

# Configs Commit

`POST /variants/configs/commit`

## Request body

- ConfigRequest
  - `config` ConfigDTO, required
    - `params` object, required
    - `url` string, nullable
    - `application_ref` ReferenceDTO
      - `slug` string, nullable
      - `version` integer, nullable
      - `commit_message` string, nullable
      - `id` string, uuid, nullable, required
    - `service_ref` ReferenceDTO
      - `slug` string, nullable
      - `version` integer, nullable
      - `commit_message` string, nullable
      - `id` string, uuid, nullable, required
    - `variant_ref` ReferenceDTO
      - `slug` string, nullable
      - `version` integer, nullable
      - `commit_message` string, nullable
      - `id` string, uuid, nullable, required
    - `environment_ref` ReferenceDTO
      - `slug` string, nullable
      - `version` integer, nullable
      - `commit_message` string, nullable
      - `id` string, uuid, nullable, required
    - `application_lifecycle` LegacyLifecycleDTO
      - `created_at` string, nullable
      - `updated_at` string, nullable
      - `updated_by_id` string, nullable
      - `updated_by` string, nullable
    - `service_lifecycle` LegacyLifecycleDTO
      - `created_at` string, nullable
      - `updated_at` string, nullable
      - `updated_by_id` string, nullable
      - `updated_by` string, nullable
    - `variant_lifecycle` LegacyLifecycleDTO
      - `created_at` string, nullable
      - `updated_at` string, nullable
      - `updated_by_id` string, nullable
      - `updated_by` string, nullable
    - `environment_lifecycle` LegacyLifecycleDTO
      - `created_at` string, nullable
      - `updated_at` string, nullable
      - `updated_by_id` string, nullable
      - `updated_by` string, nullable

## Response `200`

Successful Response

- ConfigResponseModel
  - `params` object, required
  - `url` string, nullable
  - `application_ref` ReferenceDTO
    - `slug` string, nullable
    - `version` integer, nullable
    - `commit_message` string, nullable
    - `id` string, uuid, nullable, required
  - `service_ref` ReferenceDTO
    - `slug` string, nullable
    - `version` integer, nullable
    - `commit_message` string, nullable
    - `id` string, uuid, nullable, required
  - `variant_ref` ReferenceDTO
    - `slug` string, nullable
    - `version` integer, nullable
    - `commit_message` string, nullable
    - `id` string, uuid, nullable, required
  - `environment_ref` ReferenceDTO
    - `slug` string, nullable
    - `version` integer, nullable
    - `commit_message` string, nullable
    - `id` string, uuid, nullable, required
  - `application_lifecycle` LegacyLifecycleDTO
    - `created_at` string, nullable
    - `updated_at` string, nullable
    - `updated_by_id` string, nullable
    - `updated_by` string, nullable
  - `service_lifecycle` LegacyLifecycleDTO
    - `created_at` string, nullable
    - `updated_at` string, nullable
    - `updated_by_id` string, nullable
    - `updated_by` string, nullable
  - `variant_lifecycle` LegacyLifecycleDTO
    - `created_at` string, nullable
    - `updated_at` string, nullable
    - `updated_by_id` string, nullable
    - `updated_by` string, nullable
  - `environment_lifecycle` LegacyLifecycleDTO
    - `created_at` string, nullable
    - `updated_at` string, nullable
    - `updated_by_id` string, nullable
    - `updated_by` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-02-13** `72fe88316d15` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2025-11-05** `e62506c24377` — 4 breaking, 12 info
  - removed `#/components/schemas/LifecycleDTO-Input` from the `config/application_lifecycle` request property `anyOf` list
  - removed `#/components/schemas/LifecycleDTO-Input` from the `config/environment_lifecycle` request property `anyOf` list
  - removed `#/components/schemas/LifecycleDTO-Input` from the `config/service_lifecycle` request property `anyOf` list
  - removed `#/components/schemas/LifecycleDTO-Input` from the `config/variant_lifecycle` request property `anyOf` list
  - …12 more
- **2025-06-27** `e3e84db47198` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/variants/configs/commit/post.md)

---

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