---
title: "Publish the YAML as the configuration's next version"
method: POST
path: "/api/{org_id}/fleet/configs/{id}/versions"
tags: ["Fleet"]
---

# Publish the YAML as the configuration's next version

`POST /api/{org_id}/fleet/configs/{id}/versions`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/fleet/configs/{id}/versions`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/fleet/configs/:id/versions/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `org_id` string, required
- `id` string, required

## Request body

- PublishRequest
  - `message` string
  - `yaml` string, required

## Response `201`

Published

- Published
  - `version` integer, required
  - `warnings` BTreeMap, required

## Other responses

- `400`: Invalid
- `403`: Forbidden
- `404`: Not found
- `409`: Published concurrently
- `422`: Validation errors

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
