---
title: "Convert configurations stored as rows"
method: POST
path: "/api/v1/agent/janitor/configurations/convert"
tags: ["Agent"]
---

# Convert configurations stored as rows

`POST /api/v1/agent/janitor/configurations/convert`

## Request

- Base URL: `https://pcp.example.com`
- URL: `https://pcp.example.com/api/v1/agent/janitor/configurations/convert`
- Auth: API key in header `Plakman-Agent-Token`

Converts a batch of rows-only connectors and secret providers to documents at their current revision.

## Request body

- ConvertLegacyConfigurationsRequest: ConvertLegacyConfigurationsRequest schema
  - `connectors_after` string, uuid
  - `providers_after` string, uuid

## Response `200`

OK

- ConvertLegacyConfigurationsResponse: ConvertLegacyConfigurationsResponse schema
  - `connectors_after` string, uuid
  - `converted` integer
  - `more` boolean
  - `providers_after` string, uuid
  - `skipped` integer

## Other responses

- `400`: Bad Request _(validation or deserialization error)_
- `401`: Missing, invalid or expired credentials
- `403`: The caller may not do this
- `500`: Internal Server Error _(panics)_
- `default`

---

[API](https://skmtc.dev/plakar/apis/plakar-control-plane-api-v1.md) - [All operations](https://skmtc.dev/plakar/apis/plakar-control-plane-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/plakar/apis/plakar-control-plane-api-v1/revisions/2ac049494a01?raw)
