PUT api/EnergyPrices/Prices/Electricity/{Id}
Request Information
Requires Authorization!
Add to HTTP Headers "Authorization" => "Bearer " + access_token from api/User/LoginWithApiKEY?ApiKEY={ApiKEY}
for example: "Authorization" => "Bearer aBc123-D1eF3...rS45q-XyZ879"
URI Parameters
| Name | Type | Additional information | Description |
|---|---|---|---|
| Id | integer |
Required |
Body Parameters
Prices_Put_Model| Name | Type | Additional information | Description |
|---|---|---|---|
| TariffCode | string |
None. |
|
| UsageFrom | integer |
Required |
|
| UsageTo | integer |
Required |
|
| Year | integer |
Required |
|
| Price_Base | decimal number |
Required |
|
| Price_HT | decimal number |
Required |
|
| Price_NT | decimal number |
None. |
|
| Prov | decimal number |
None. |
|
| ProvkWh | decimal number |
None. |
|
| Service_Price_HT | decimal number |
None. |
|
| Service_Price_NT | decimal number |
None. |
|
| TradeId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"TariffCode": "sample string 1",
"UsageFrom": 2,
"UsageTo": 3,
"Year": 4,
"Price_Base": 5.0,
"Price_HT": 6.0,
"Price_NT": 1.0,
"Prov": 1.0,
"ProvkWh": 1.0,
"Service_Price_HT": 1.0,
"Service_Price_NT": 1.0,
"TradeId": 1
}
application/xml, text/xml
Sample:
<Prices_Put_Model xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPITokenGenerator.Models"> <Price_Base>5</Price_Base> <Price_HT>6</Price_HT> <Price_NT>1</Price_NT> <Prov>1</Prov> <ProvkWh>1</ProvkWh> <Service_Price_HT>1</Service_Price_HT> <Service_Price_NT>1</Service_Price_NT> <TariffCode>sample string 1</TariffCode> <TradeId>1</TradeId> <UsageFrom>2</UsageFrom> <UsageTo>3</UsageTo> <Year>4</Year> </Prices_Put_Model>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.