Luxor Documentation Hub Logo
Energy/API Documentation/Sites

Update site

Updates the details of an existing site.

PATCH
/api/v1/energy/sites/{site_id}

Authorization

AuthorizationRequiredBearer <token>

In: header

Request Body

application/jsonRequired
resource_idResource Id
min_load_kwMin Load Kw
max_load_kwMax Load Kw
base_load_kwBase Load Kw
settlement_point_idSettlement Point Id
commentsComments

Path Parameters

site_idRequiredSite Id

The UUID of the site to update

Format: "uuid"
curl -X PATCH "https://app.luxor.tech/api/v1/energy/sites/497f6eca-6276-4993-bfeb-53cbbbba6f08" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "base_load_kw": "5.0",
    "comments": "Updated site conditions",
    "max_load_kw": "100.0",
    "min_load_kw": "10.0",
    "resource_id": "RESOURCE_123",
    "settlement_point_id": "3fa85f64-5717-4562-b3fc-2c963f66afa7"
  }'

Successful Response

{
  "base_load_kw": "50.0",
  "comments": "Facility in Houston load zone",
  "created_at": "2025-01-15T10:30:00Z",
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "max_load_kw": "1000.0",
  "min_load_kw": "0.0",
  "resource_id": "CLIENT_ID_123",
  "settlement_point": {
    "comments": "Primary settlement point for Houston area",
    "created_at": "2025-01-10T08:00:00Z",
    "description": "Houston load zone settlement point",
    "display_name": "Houston Load Zone",
    "iso_name": "ERCOT",
    "name": "LZ_HOUSTON",
    "updated_at": "2025-01-10T08:00:00Z",
    "$id": "cd8d366c-1946-4c89-8110-4b9cd4403a11"
  },
  "updated_at": "2025-01-20T14:15:00Z"
}