POST request/Switch/update

Request Information

URI Parameters

None.

Body Parameters

MUGQuoteUpdateRequest
NameDescriptionTypeAdditional information
Electricity

SupplierData

None.

Gas

SupplierData

None.

SwitchId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "switchId": 1,
  "electricity": {
    "tariffId": 1,
    "paymentId": "MonthlyDirectDebit",
    "consumption": 1
  },
  "gas": {
    "tariffId": 1,
    "paymentId": "MonthlyDirectDebit",
    "consumption": 1
  }
}

application/xml, text/xml

Sample:
<MUGQuoteUpdateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyUtilityGenius.Api.Models.Dto">
  <Electricity>
    <Consumption>1</Consumption>
    <PaymentId>MonthlyDirectDebit</PaymentId>
    <TariffId>1</TariffId>
  </Electricity>
  <Gas>
    <Consumption>1</Consumption>
    <PaymentId>MonthlyDirectDebit</PaymentId>
    <TariffId>1</TariffId>
  </Gas>
  <SwitchId>1</SwitchId>
</MUGQuoteUpdateRequest>

multipart/form-data

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

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Electricity.TariffId"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Electricity.PaymentId"

MonthlyDirectDebit
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Electricity.Consumption"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Gas.TariffId"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Gas.PaymentId"

MonthlyDirectDebit
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Gas.Consumption"

1
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

CustomerDtoResponse
NameDescriptionTypeAdditional information
ApiVersion

string

None.

GeniusSwitchDto

GeniusSwitchDto

None.

Uri

string

None.

Response Formats

application/json, text/json

Sample:
{
  "apiVersion": "sample string 1",
  "uri": "sample string 2",
  "geniusSwitchDto": {
    "switchId": 1
  }
}

application/xml, text/xml

Sample:
<CustomerDtoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyUtilityGenius.Api.Models.DtoResponse">
  <ApiVersion>sample string 1</ApiVersion>
  <GeniusSwitchDto xmlns:d2p1="http://schemas.datacontract.org/2004/07/MyUtilityGenius.Api.Models.Dto">
    <SwitchId xmlns="http://schemas.datacontract.org/2004/07/MyUtilityGenius.Api.Domain.Default.Switch">1</SwitchId>
  </GeniusSwitchDto>
  <Uri>sample string 2</Uri>
</CustomerDtoResponse>

multipart/form-data

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

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

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="GeniusSwitchDto.SwitchId"

1
--MultipartDataMediaFormatterBoundary1q2w3e--