Saltar para o conteúdo principal
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
}

Autorizações

x-api-key
string
header
obrigatório

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

Parâmetros de caminho

locationId
string
obrigatório

Corpo

application/json
startTime
string<date-time>
obrigatório

Timestamp ISO-8601 UTC. Obrigatório.

Exemplo:

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

endTime
string<date-time>
obrigatório

Timestamp ISO-8601 UTC. Deve ser posterior a startTime e estar no futuro. Obrigatório.

Exemplo:

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

limitKw
number<float>
obrigatório

Limite de potência em kW. Deve ser maior que 0. Obrigatório.

Exemplo:

50

priority
integer
padrão:0

Nível de prioridade no estilo da pilha OCPP, de 0 (mais baixa) a 10 (mais alta). O envio de um perfil em uma prioridade que já existe para este alvo o substitui.

Intervalo necessário: 0 <= x <= 10
Exemplo:

5

Resposta

Perfil criado/substituído

locationId
string
Exemplo:

"3632155"

priority
integer
Exemplo:

5

limitKw
number
Exemplo:

50

startTime
string<date-time>
endTime
string<date-time>
status
enum<string>
Opções disponíveis:
SCHEDULED,
ACTIVE,
EXPIRED
permanentLimitKw
number | null
Exemplo:

100

effectiveLimitKw
number | null
Exemplo:

50