PUT api/EnergyPrices/Prices/Gas/{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_Gas_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 | decimal number |
Required |
|
| L_Gas | decimal number |
None. |
|
| L_Gas_Addon | decimal number |
None. |
|
| Prov | decimal number |
None. |
|
| ProvkWh | decimal number |
None. |
|
| Service_Price | 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": 6.0,
"L_Gas": 1.0,
"L_Gas_Addon": 1.0,
"Prov": 1.0,
"ProvkWh": 1.0,
"Service_Price": 1.0,
"TradeId": 1
}
application/xml, text/xml
Sample:
<Prices_Gas_Put_Model xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPITokenGenerator.Models"> <L_Gas>1</L_Gas> <L_Gas_Addon>1</L_Gas_Addon> <Price>6</Price> <Price_Base>5</Price_Base> <Prov>1</Prov> <ProvkWh>1</ProvkWh> <Service_Price>1</Service_Price> <TariffCode>sample string 1</TariffCode> <TradeId>1</TradeId> <UsageFrom>2</UsageFrom> <UsageTo>3</UsageTo> <Year>4</Year> </Prices_Gas_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.