Skip to main content
PUT
/
organisations
/
{organisationID}
/
virtual-assets
/
{virtualAssetID}
/
blocks
/
{blockID}
Update the schedule of a block
curl --request PUT \
  --url https://api.trlyr.com/organisations/{organisationID}/virtual-assets/{virtualAssetID}/blocks/{blockID} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "schedule": [
    {
      "power": 380,
      "time": "2023-11-11T14:30:00Z"
    }
  ]
}
'
{
  "end": "2023-11-12T00:00:00Z",
  "id": "11111111-1111-1111-1111-111111111111",
  "powerCapacity": [
    {
      "chargePowerCapacity": 380,
      "dischargePowerCapacity": 380,
      "ratedChargePowerCapacity": 380,
      "ratedDischargePowerCapacity": 380,
      "time": "2023-11-11T14:30:00Z"
    }
  ],
  "ratedChargePower": 1000,
  "ratedDischargePower": 1000,
  "schedule": [
    {
      "power": 380,
      "time": "2023-11-11T14:30:00Z"
    }
  ],
  "start": "2023-11-11T00:00:00Z",
  "unitsPower": "kW"
}

Headers

Authorization
string
default:Bearer <access token value>
required

Access token

Path Parameters

organisationID
string
required

Organisation ID

virtualAssetID
string
required

Virtual Asset ID

blockID
string
required

Block ID

Body

application/json

Block update

Block update

schedule
object[]
required

Response

OK

end
string<dateTime>
Example:

"2023-11-12T00:00:00Z"

id
string<uuid>
Example:

"11111111-1111-1111-1111-111111111111"

powerCapacity
object[]
ratedChargePower
number<float>
Example:

1000

ratedDischargePower
number<float>
Example:

1000

schedule
object[]
start
string<dateTime>
Example:

"2023-11-11T00:00:00Z"

unitsPower
string
Example:

"kW"

Last modified on June 30, 2026