---
title: "Create a cluster"
method: POST
path: "/{org_slug}/clusters"
tags: ["Clusters"]
---

# Create a cluster

`POST /{org_slug}/clusters`

## Request

- Base URL: `https://api.obelinf.com`
- URL: `https://api.obelinf.com/{org_slug}/clusters`
- Auth: HTTP bearer

Create a cluster

## Path parameters

- `org_slug` string, required

## Request body

- object
  - `name` string, required
  - `slug` string, required
  - `cluster_group_id` string
  - `description` string

## Response `201`

Cluster created

- object
  - `cluster` object, required
    - `created_at` string, required
    - `id` string, required
    - `name` string, required
    - `slug` string, required
    - `updated_at` string, required
    - `cluster_group_id` string, nullable
    - `description` string, nullable
  - `tags` object[], required
    - `id` string, required
    - `tag_id` string, required
    - `tag_name` string, required
    - `tag_color` string, nullable

## Other responses

- `400`: Validation error
- `403`: Feature not available
- `404`: Not found
- `409`: Conflict

---

[API](https://skmtc.dev/obelinf/apis/obelinf-api.md) · [All operations](https://skmtc.dev/obelinf/apis/obelinf-api/llms.txt) · [OpenAPI document](https://skmtc.dev/obelinf/apis/obelinf-api/revisions/463fcf791828?raw)
