POST
/
entities
/
site
/
{site_id}
/
market-consent
Add Site Market Consent
curl --request POST \
  --url https://api-sandbox.axle.energy/entities/site/{site_id}/market-consent \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "markets": [
    "cm"
  ]
}'
{
  "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<uuid>
required

Body

application/json

Request model for updating market consent for a site.

markets
enum<string>[]
required

Markets to consent to or remove consent from

Response

Successful Response

Response model for site information.

id
string<uuid>
required

Axle's internal UUID for the site

mpan
string

Meter Point Administration Number for the site

postcode
string

UK postcode for the site

address
string

Full address for the site

asset_ids
string<uuid>[]

List of asset IDs associated with this site

markets
enum<string>[]

Markets the site is participating in

tariff
object

Tariff information for the site Response model for tariff information.