---
title: "Create a configuration with its first draft"
method: POST
path: "/api/{org_id}/fleet/configs"
tags: ["Fleet"]
---

# Create a configuration with its first draft

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

## 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`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/fleet/configs/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `org_id` string, required

## Request body

- CreateConfigRequest
  - `description` string
  - `id` string, required
  - `yaml` string

## Response `201`

Created

- FleetConfigDetail
  - `collectors` integer, required
  - `description` string, required
  - `fleets` CollectorFleet[], required: The readable fleets whose desired or stable version is this configuration.
    - `id` string, required
    - `name` string, nullable
  - `fleets_hidden` integer: Fleets using this configuration that the caller cannot read.
  - `id` string, required
  - `latest_version` integer, required
  - `live_version` integer, nullable
  - `updated_at` integer, required
  - `updated_by` string, required
  - `draft` ConfigDraft
    - `at` integer, required
    - `by` string, required
    - `yaml` string, required
  - `versions` ConfigVersionSummary[], required
    - `at` integer, required
    - `author` string, required
    - `live` boolean, required
    - `message` string, required
    - `state` 'published' | 'rolling_out'
    - `version` integer, required

## Other responses

- `400`: Invalid
- `403`: Forbidden
- `409`: Id exists

---

[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)
