PUT api/EnergyPrices/Trades/{energyType}/{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 |
|---|---|---|---|
| energyType | EnergyTypes |
Required |
|
| Id | integer |
Required |
Body Parameters
TradeModel| Name | Type | Additional information | Description |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| Enabled | boolean |
None. |
|
| SuppliersCount | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"Description": "sample string 3",
"Enabled": true,
"SuppliersCount": 5
}
application/xml, text/xml
Sample:
<TradeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPITokenGenerator.Models"> <Description>sample string 3</Description> <Enabled>true</Enabled> <Id>1</Id> <Name>sample string 2</Name> <SuppliersCount>5</SuppliersCount> </TradeModel>
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.