---
title: "Set Current Config Version"
method: POST
path: "/components/{component_id}/configs/{version}/set-current"
tags: ["Components"]
---

# Set Current Config Version

`POST /components/{component_id}/configs/{version}/set-current`

Set a published config version as current (for rollback).

## Path parameters

- `component_id` string, required — Component ID
- `version` integer, required — Version number

## Response `200`

Successful Response

- ComponentResponse
  - `component_id` string, required
  - `component_type` 'agent' | 'team' | 'workflow', required
  - `name` string, nullable
  - `description` string, nullable
  - `current_version` integer, nullable
  - `metadata` object, nullable
  - `created_at` integer, required
  - `updated_at` integer, nullable

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `422` — Validation Error
- `500` — Internal Server Error

---

[API](https://skmtc.net/agno/apis/agno-api-reference.md) · [All operations](https://skmtc.net/agno/apis/agno-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agno/agno-api-reference/revisions/5f6149d395d0/schema)
