Saltar para o conteúdo principal
POST
/
clusters
Create a cluster
curl --request POST \
  --url https://api.ridergy.com/v1/clusters \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "name": "North Campus",
  "locationIds": [
    "3632155",
    "3632156"
  ],
  "limitKw": 200
}
'
{
  "clusterId": "clst_20260612_a1b2c3d4",
  "tenantUuid": "<string>",
  "name": "North Campus",
  "locationIds": [
    "3632155",
    "3632156"
  ],
  "limitKw": 200,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Autorizações

x-api-key
string
header
obrigatório

Chave de API por tenant. O tenant é derivado da chave — nunca da requisição.

Corpo

application/json
name
string
obrigatório
Exemplo:

"North Campus"

locationIds
string[]
obrigatório
Minimum array length: 1
Exemplo:
["3632155", "3632156"]
limitKw
number<float> | null

Limite máximo de kW opcional para o cluster.

Exemplo:

200

Resposta

Cluster criado

clusterId
string
Exemplo:

"clst_20260612_a1b2c3d4"

tenantUuid
string
name
string
Exemplo:

"North Campus"

locationIds
string[]
Exemplo:
["3632155", "3632156"]
limitKw
number | null
Exemplo:

200

status
enum<string>
Opções disponíveis:
ACTIVE,
INACTIVE
createdAt
string<date-time>
updatedAt
string<date-time>