跳转到主要内容
PUT
/
locations
/
{locationId}
/
limit
Set a location's permanent (fallback) limit
curl --request PUT \
  --url https://api.ridergy.com/v1/locations/{locationId}/limit \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "limitKw": 100
}'
{
  "locationId": "3632155",
  "permanentLimitKw": 100,
  "effectiveLimitKw": 100
}

授权

x-api-key
string
header
必填

按租户分配的 API 密钥。租户信息从密钥中获取——绝不来自请求本身。

路径参数

locationId
string
必填

请求体

application/json
limitKw
number<float>
必填
示例:

100

响应

永久限制已更新

locationId
string
示例:

"3632155"

permanentLimitKw
number
示例:

100

effectiveLimitKw
number | null
示例:

100