Skip to main content
PUT
/
v1
/
entities
/
{entityId}
/
battery-capacity
Update the battery capacity of an Entity
curl --request PUT \
  --url https://api.traxes.io/connect/v1/entities/{entityId}/battery-capacity \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "batteryCapacity": 123
}'
{
  "batteryCapacity": 123
}

Authorizations

Authorization
string
header
required

Access Token Authentication

Path Parameters

entityId
string<uuid>
required

The id of the Entity

Body

application/json

A request to modify the battery capacity of an Entity

batteryCapacity
number
required

The capacity of the battery.

Response

OK

The battery capacity of an Entity

batteryCapacity
number
required

The capacity of the battery.