PUT api/EnergyPrices/SuppliersTradesForSupplier/{energyType}/{supplierId}

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

supplierId integer

Required

Body Parameters

Collection of 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:06.8993574+01:00",
    "EnabledTo": "2025-12-06T05:48:06.8993574+01:00",
    "Trade": {
      "Id": 1,
      "Name": "sample string 2",
      "Description": "sample string 3",
      "Enabled": true,
      "SuppliersCount": 5
    }
  },
  {
    "Id": 1,
    "TradeId": 2,
    "SupplierNumber": 3,
    "SupplierName": "sample string 4",
    "SupplierTradeId": "sample string 5",
    "SupplierTradeName": "sample string 6",
    "EnabledFrom": "2025-12-06T05:48:06.8993574+01:00",
    "EnabledTo": "2025-12-06T05:48:06.8993574+01:00",
    "Trade": {
      "Id": 1,
      "Name": "sample string 2",
      "Description": "sample string 3",
      "Enabled": true,
      "SuppliersCount": 5
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfSupplierTradeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPITokenGenerator.Models">
  <SupplierTradeModel>
    <EnabledFrom>2025-12-06T05:48:06.8993574+01:00</EnabledFrom>
    <EnabledTo>2025-12-06T05:48:06.8993574+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>
  <SupplierTradeModel>
    <EnabledFrom>2025-12-06T05:48:06.8993574+01:00</EnabledFrom>
    <EnabledTo>2025-12-06T05:48:06.8993574+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>
</ArrayOfSupplierTradeModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.