curl --request PUT \
--url https://api.trlyr.com/physical-assets/{physicalAssetID}/operational \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"data": {}
}'import requests
url = "https://api.trlyr.com/physical-assets/{physicalAssetID}/operational"
payload = { "data": {} }
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({data: {}})
};
fetch('https://api.trlyr.com/physical-assets/{physicalAssetID}/operational', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.trlyr.com/physical-assets/{physicalAssetID}/operational",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'data' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.trlyr.com/physical-assets/{physicalAssetID}/operational"
payload := strings.NewReader("{\n \"data\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.trlyr.com/physical-assets/{physicalAssetID}/operational")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trlyr.com/physical-assets/{physicalAssetID}/operational")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {}\n}"
response = http.request(request)
puts response.read_bodyUpdate operational data for a physical asset
Updates external restriction operational data for a physical asset as a timeseries.
Callers must have access to the physical asset and the Update:physical-asset-operational permission. The following categories may be updated:
Values are signed power in kW: charge is negative and discharge is positive. Thus externalRestrictionMin = -1000, externalRestrictionMax = 2000 at 2025-07-11T22:00:00Z implies that the asset may charge no more than 1 MW and discharge no more than 2 MW in the delivery period starting at 2025-07-11T22:00:00Z.
externalRestrictionMin: The lower (most negative / charge-side) external power restriction of the physical asset in kW, e.g. -1000.0.
externalRestrictionMax: The upper (most positive / discharge-side) external power restriction of the physical asset in kW, e.g. 2000.0.
Requests that include any other category are rejected.
Request body
The request body has the following shape:
{
"data": {
"externalRestrictionMin": {
"dataPoints": [
{
"timestamp": "2025-07-11T22:00:00Z",
"value": -1000
}
]
},
"externalRestrictionMax": {
"dataPoints": [
{
"timestamp": "2025-07-11T22:00:00Z",
"value": 2000
}
]
}
}
}
This body sets externalRestrictionMin = -1000 and externalRestrictionMax = 2000 at 2025-07-11T22:00:00Z, so the asset may charge no more than 1 MW and discharge no more than 2 MW in the delivery period starting at that timestamp.
data: A map of operational data category name to category payload. At least one category is required.
dataPoints: A non-empty list of points for that category.
timestamp: The UTC timestamp of the point, e.g. 2025-07-11T22:00:00Z.
value: The signed power value for the category at that timestamp, in kW (negative for charge, positive for discharge).
A successful update returns 204 No Content.
curl --request PUT \
--url https://api.trlyr.com/physical-assets/{physicalAssetID}/operational \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"data": {}
}'import requests
url = "https://api.trlyr.com/physical-assets/{physicalAssetID}/operational"
payload = { "data": {} }
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({data: {}})
};
fetch('https://api.trlyr.com/physical-assets/{physicalAssetID}/operational', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.trlyr.com/physical-assets/{physicalAssetID}/operational",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'data' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.trlyr.com/physical-assets/{physicalAssetID}/operational"
payload := strings.NewReader("{\n \"data\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.trlyr.com/physical-assets/{physicalAssetID}/operational")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.trlyr.com/physical-assets/{physicalAssetID}/operational")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {}\n}"
response = http.request(request)
puts response.read_bodyHeaders
Access token
Path Parameters
Physical asset ID
Body
Operational data timeseries
Operational data timeseries
Response
No Content