Vai al contenuto principale
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"
}

Autorizzazioni

x-api-key
string
header
obbligatorio

Chiave API per-tenant. Il tenant viene derivato dalla chiave — mai dalla richiesta.

Corpo

application/json
name
string
obbligatorio
Esempio:

"North Campus"

locationIds
string[]
obbligatorio
Minimum array length: 1
Esempio:
["3632155", "3632156"]
limitKw
number<float> | null

Cap kW opzionale a livello di cluster.

Esempio:

200

Risposta

Cluster creato

clusterId
string
Esempio:

"clst_20260612_a1b2c3d4"

tenantUuid
string
name
string
Esempio:

"North Campus"

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

200

status
enum<string>
Opzioni disponibili:
ACTIVE,
INACTIVE
createdAt
string<date-time>
updatedAt
string<date-time>