Skip to content

Create cluster

POST
/api/clusters
curl --request POST \
--url http://localhost:3000/api/clusters \
--header 'Content-Type: application/json' \
--cookie session=<session> \
--data '{ "name": "example", "typeId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "groupId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "siteId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "status": "example", "description": "example" }'
Media type application/json
object
name
required
string
typeId
string format: uuid
groupId
string format: uuid
siteId
string format: uuid
status
string
description
string
Example generated
{
"name": "example",
"typeId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"groupId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"siteId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"status": "example",
"description": "example"
}

Cluster created

Media type application/json
object
data
object
id
required
string format: uuid
name
required
string
typeId
string format: uuid
nullable
groupId
string format: uuid
nullable
siteId
string format: uuid
nullable
status
string
nullable
description
string
nullable
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
Example generated
{
"data": {
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"typeId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"groupId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"siteId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"status": "example",
"description": "example",
"createdAt": "2026-04-15T12:00:00Z",
"updatedAt": "2026-04-15T12:00:00Z"
}
}

Validation error

Media type application/json
object
error
required
string
Example
{
"error": "Not found"
}

Not authenticated

Media type application/json
object
error
required
string
Example
{
"error": "Not found"
}