PUT api/EnergyPrices/SuppliersTrades/{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

NameTypeAdditional informationDescription
energyType EnergyTypes

Required

Id integer

Required

Body Parameters

SupplierTradeModel
NameTypeAdditional informationDescription
Id integer

None.

TradeId integer

None.

SupplierNumber integer

None.

SupplierName string

None.

SupplierTradeId string

Required

SupplierTradeName string

Required

EnabledFrom date

None.

EnabledTo date

None.

Trade TradeModel

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "TradeId": 2,
  "SupplierNumber": 3,
  "SupplierName": "sample string 4",
  "SupplierTradeId": "sample string 5",
  "SupplierTradeName": "sample string 6",
  "EnabledFrom": "2025-12-06T05:48:08.8993531+01:00",
  "EnabledTo": "2025-12-06T05:48:08.8993531+01:00",
  "Trade": {
    "Id": 1,
    "Name": "sample string 2",
    "Description": "sample string 3",
    "Enabled": true,
    "SuppliersCount": 5
  }
}

application/xml, text/xml

Sample:
<SupplierTradeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPITokenGenerator.Models">
  <EnabledFrom>2025-12-06T05:48:08.8993531+01:00</EnabledFrom>
  <EnabledTo>2025-12-06T05:48:08.8993531+01:00</EnabledTo>
  <Id>1</Id>
  <SupplierName>sample string 4</SupplierName>
  <SupplierNumber>3</SupplierNumber>
  <SupplierTradeId>sample string 5</SupplierTradeId>
  <SupplierTradeName>sample string 6</SupplierTradeName>
  <Trade>
    <Description>sample string 3</Description>
    <Enabled>true</Enabled>
    <Id>1</Id>
    <Name>sample string 2</Name>
    <SuppliersCount>5</SuppliersCount>
  </Trade>
  <TradeId>2</TradeId>
</SupplierTradeModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>