POST api/Other/TariffsNetworksRestrictions

Request Information

URI Parameters

None.

Body Parameters

TariffsRestrictionsReq
NameTypeAdditional informationDescription
EnergyType Energy_Types

Required

NetworkId integer

Required

TariffIds Collection of integer

Required

Request Formats

application/json, text/json

Sample:
{
  "EnergyType": 0,
  "NetworkId": 1,
  "TariffIds": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<TariffsRestrictionsReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPITokenGenerator.Models.TariffInfo">
  <EnergyType>Electricity</EnergyType>
  <NetworkId>1</NetworkId>
  <TariffIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </TariffIds>
</TariffsRestrictionsReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of integer

Response Formats

application/json, text/json

Sample:
[
  1,
  2
]

application/xml, text/xml

Sample:
<ArrayOflong xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <long>1</long>
  <long>2</long>
</ArrayOflong>