POST request/manage/tariff/create

Request Information

URI Parameters

None.

Body Parameters

RequestTariffModel
NameDescriptionTypeAdditional information
ArcheTypeId

byte

None.

HasWeekend

boolean

None.

SenarioId

byte

None.

TariffName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "tariffName": "sample string 1",
  "senarioId": 64,
  "archeTypeId": 64,
  "hasWeekend": true
}

application/xml, text/xml

Sample:
<RequestTariffModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyUtilityGenius.Api.Models.Dto">
  <ArcheTypeId>64</ArcheTypeId>
  <HasWeekend>true</HasWeekend>
  <SenarioId>64</SenarioId>
  <TariffName>sample string 1</TariffName>
</RequestTariffModel>

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="TariffName"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="SenarioId"

64
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="ArcheTypeId"

64
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="HasWeekend"

True
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

TariffModelResponse
NameDescriptionTypeAdditional information
TariffId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "tariffId": 1
}

application/xml, text/xml

Sample:
<TariffModelResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyUtilityGenius.Api.Models.Dto">
  <TariffId>1</TariffId>
</TariffModelResponse>

multipart/form-data

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="TariffId"

1
--MultipartDataMediaFormatterBoundary1q2w3e--