Luxor Documentation Hub Logo
Energy/API Documentation/Sites

Update site information

Updates the details of an existing site.

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

Authorization

AuthorizationRequiredBearer <token>

In: header

Request Body

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

Path Parameters

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

Successful Response

{
  "min_load_kw": "string",
  "max_load_kw": "string",
  "comments": "string",
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z",
  "settlement_point": {
    "name": "string",
    "iso_name": "string",
    "description": "string",
    "comments": "string",
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z",
    "iso": {
      "name": "string",
      "timezone": "string"
    }
  },
  "url": "string"
}