PATCH
/
entities
/
site
/
{site_id}
curl --request PATCH \
  --url https://api-sandbox.axle.energy/entities/site/{site_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "markets": [
    "cm"
  ],
  "tariff": {
    "tariff_cheap_start_time": "<string>",
    "tariff_cheap_end_time": "<string>",
    "tariff_type": "single_rate"
  }
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "mpan": "<string>",
  "postcode": "<string>",
  "address": "<string>",
  "asset_ids": [],
  "markets": [
    "cm"
  ],
  "tariff": {
    "tariff_type": "single_rate",
    "tariff_cheap_start_time": "<string>",
    "tariff_cheap_end_time": "<string>"
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

site_id
string
required

Body

application/json

Request model for updating site information.

Response

200
application/json

Successful Response

Response model for site information.