Vai al contenuto principale
POST
/
locations
/
{locationId}
/
schedules
Create or replace a location priority limit profile
curl --request POST \
  --url https://api.ridergy.com/v1/locations/{locationId}/schedules \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "startTime": "2026-06-12T08:00:00Z",
  "endTime": "2026-06-12T18:00:00Z",
  "limitKw": 50,
  "priority": 5
}
'
{
  "locationId": "3632155",
  "priority": 5,
  "limitKw": 50,
  "startTime": "2023-11-07T05:31:56Z",
  "endTime": "2023-11-07T05:31:56Z",
  "permanentLimitKw": 100,
  "effectiveLimitKw": 50
}

Autorizzazioni

x-api-key
string
header
obbligatorio

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

Parametri del percorso

locationId
string
obbligatorio

Corpo

application/json
startTime
string<date-time>
obbligatorio

Timestamp UTC ISO-8601. Obbligatorio.

Esempio:

"2026-06-12T08:00:00Z"

endTime
string<date-time>
obbligatorio

Timestamp UTC ISO-8601. Deve essere successivo a startTime e nel futuro. Obbligatorio.

Esempio:

"2026-06-12T18:00:00Z"

limitKw
number<float>
obbligatorio

Limite di potenza in kW. Deve essere maggiore di 0. Obbligatorio.

Esempio:

50

priority
integer
predefinito:0

Livello di priorità in stile stack OCPP, da 0 (più bassa) a 10 (più alta). L'invio di un profilo a una priorità già esistente per questo target lo sostituisce.

Intervallo richiesto: 0 <= x <= 10
Esempio:

5

Risposta

Profilo creato/sostituito

locationId
string
Esempio:

"3632155"

priority
integer
Esempio:

5

limitKw
number
Esempio:

50

startTime
string<date-time>
endTime
string<date-time>
status
enum<string>
Opzioni disponibili:
SCHEDULED,
ACTIVE,
EXPIRED
permanentLimitKw
number | null
Esempio:

100

effectiveLimitKw
number | null
Esempio:

50