Skip to main content
POST
/
physical-assets
/
{physicalAssetID}
/
unavailability
Create an unavailability
curl --request POST \
  --url https://api.trlyr.com/physical-assets/{physicalAssetID}/unavailability \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "description": "Annual maintenance",
  "end": "2023-11-12T00:00:00Z",
  "start": "2023-11-11T00:00:00Z",
  "type": "MAINTENANCE",
  "volume": {
    "energyCapacity": 1000,
    "powerCapacity": {
      "charge": 1000,
      "discharge": 1000
    }
  }
}
'
{
  "description": "<string>",
  "eexNotificationIds": [
    "<string>"
  ],
  "end": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "physicalAssetID": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "start": "<string>",
  "type": "<string>",
  "volume": {
    "energyCapacity": 123,
    "powerCapacity": {
      "charge": 123,
      "discharge": 123
    }
  }
}

Headers

Authorization
string
default:Bearer <access token value>
required

Access token

Path Parameters

physicalAssetID
string<uuid>
required

Physical asset ID

Body

application/json

Unavailability parameters

Unavailability parameters

description
string
required
Example:

"Annual maintenance"

end
string<dateTime>
required
Example:

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

start
string<dateTime>
required
Example:

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

type
string
required
Example:

"MAINTENANCE"

volume
object
required
eexNotificationIds
string[]
Example:
["550e8400-e29b-41d4-a716-446655440000"]

Response

Created

description
string
eexNotificationIds
string[]
end
string<dateTime>
id
string<uuid>
physicalAssetID
string<uuid>
start
string<dateTime>
type
string
volume
object
Last modified on June 30, 2026