PATCH
/
locations
/
{id}
/
configuration
/
curl --request PATCH \
--url https://sandbox.prezio.eu/api/locations/{id}/configuration/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"tariffs": [
"tar_4",
"tar_5"
]
}'
{
"tariffs": [
"tar_4",
"tar_5"
]
}

Authorizations

Authorization
string
header
required

Token-based authentication with required prefix "Token"

Path Parameters

id
string
required

Body

Serializer for location configuration (implicit LocationConfiguration). Handles the configuration of a location including tariffs, consumer, and TOU plans.

consumer
string | null

Consumer ID (e.g., 'con_123'). Optional - locations can be configured without a consumer.

local_consumer_type
string | null

Local consumer type ID (e.g., 'lct_123'). Helps determine tariff eligibility.

tariffs
string[]

List of tariff IDs to assign to this location (e.g., ['tar_1', 'tar_2'])

custom_time_of_use_plan
string | null

Custom TOU plan ID (e.g., 'ctou_123'). Optional.

Response

Serializer for location configuration (implicit LocationConfiguration). Handles the configuration of a location including tariffs, consumer, and TOU plans.

tariffs
string[]
required

List of tariff IDs to assign to this location (e.g., ['tar_1', 'tar_2'])

consumer
string | null

Consumer ID (e.g., 'con_123'). Optional - locations can be configured without a consumer.

local_consumer_type
string | null

Local consumer type ID (e.g., 'lct_123'). Helps determine tariff eligibility.

custom_time_of_use_plan
string | null

Custom TOU plan ID (e.g., 'ctou_123'). Optional.