---
title: "Configs Deploy"
method: POST
path: "/variants/configs/deploy"
tags: ["Variants"]
---

# Configs Deploy

`POST /variants/configs/deploy`

## Request body

- BodyConfigsDeploy
  - `variant_ref` ReferenceRequestModel, required
    - `slug` string, nullable
    - `version` integer, nullable
    - `commit_message` string, nullable
    - `id` string, uuid, nullable
  - `environment_ref` ReferenceRequestModel, required
    - `slug` string, nullable
    - `version` integer, nullable
    - `commit_message` string, nullable
    - `id` string, uuid, nullable
  - `application_ref` ReferenceRequestModel
    - `slug` string, nullable
    - `version` integer, nullable
    - `commit_message` string, nullable
    - `id` string, uuid, 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` — 8 info
  - added `#/components/schemas/LegacyLifecycleDTO` to the `application_lifecycle` response property `anyOf` list for the response status `200`
  - added `#/components/schemas/LegacyLifecycleDTO` to the `environment_lifecycle` response property `anyOf` list for the response status `200`
  - added `#/components/schemas/LegacyLifecycleDTO` to the `service_lifecycle` response property `anyOf` list for the response status `200`
  - added `#/components/schemas/LegacyLifecycleDTO` to the `variant_lifecycle` response property `anyOf` list for the response status `200`
  - …4 more
- **2025-06-27** `e3e84db47198` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/variants/configs/deploy/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/8fcd55a5a656/schema)
