---
title: "Cluster"
method: POST
path: "/custom_clusters/register"
tags: ["agents"]
---

# Cluster

`POST /custom_clusters/register`

## Request body

- object
  - `name` string
  - `namespace` string
  - `storageClassName` string
  - `runnerType` string
  - `dockerDaemonParams` string
  - `nodeSelector` string
  - `annotations` string
  - `clusterName` string
  - `runtimeEnvironmentName` string

## Response `200`

json

- Json

## Changes

> 42 revisions in range; 1 could not be searched.

- **2023-09-11** `a6280a715390` — 1 info
  - added the media type `application/json` for the response with the status `200`
- **2020-05-21** `c6df22b35bc6` — 1 info
  - added the new optional request property `runtimeEnvironmentName`
- **2020-02-24** `c28aa6638b2a` — 1 info
  - endpoint added
- **2019-02-14** `c718449cec44` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/codefresh-io/apis/codefresh-api/changes/custom_clusters/register/post.md)

---

[API](https://skmtc.dev/codefresh-io/apis/codefresh-api.md) · [All operations](https://skmtc.dev/codefresh-io/apis/codefresh-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/codefresh-io/codefresh-api/revisions/fa310e908c46/schema)
