PUT request/App/customer/{customerid}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
customerid

integer

Required

Body Parameters

AppCustomerPut
NameDescriptionTypeAdditional information
AnnualOilUsageCost

decimal number

None.

ArcheTypeId

byte

None.

Email

string

None.

FirstName

string

None.

IsOilForHeating

boolean

None.

LastName

string

None.

Phone

string

None.

TitleId

byte

None.

usage

EnergyUsage

None.

Request Formats

application/json, text/json

Sample:
{
  "titleId": 64,
  "firstName": "sample string 1",
  "lastName": "sample string 2",
  "email": "sample string 3",
  "phone": "sample string 4",
  "isOilForHeating": true,
  "annualOilUsageCost": 1.0,
  "archeTypeId": 64,
  "usage": {
    "gasSupplierId": 1,
    "gasConsumption": 1,
    "gasTariffId": 1,
    "gasPaymentId": 64,
    "electricitySupplierId": 1,
    "electricityConsumption": 1,
    "electricityTariffId": 1,
    "electricityPaymentId": 64,
    "gasSupplierName": "sample string 1",
    "gasTariffName": "sample string 2",
    "electricitySupplierName": "sample string 3",
    "electricityTariffName": "sample string 4"
  }
}

application/xml, text/xml

Sample:
<AppCustomerPut xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyUtilityGenius.Api.Models.App">
  <AnnualOilUsageCost>1</AnnualOilUsageCost>
  <ArcheTypeId>64</ArcheTypeId>
  <Email>sample string 3</Email>
  <FirstName>sample string 1</FirstName>
  <IsOilForHeating>true</IsOilForHeating>
  <LastName>sample string 2</LastName>
  <Phone>sample string 4</Phone>
  <TitleId>64</TitleId>
  <usage>
    <ElectricityConsumption>1</ElectricityConsumption>
    <ElectricityPaymentId>64</ElectricityPaymentId>
    <ElectricitySupplierId>1</ElectricitySupplierId>
    <ElectricitySupplierName>sample string 3</ElectricitySupplierName>
    <ElectricityTariffId>1</ElectricityTariffId>
    <ElectricityTariffName>sample string 4</ElectricityTariffName>
    <GasConsumption>1</GasConsumption>
    <GasPaymentId>64</GasPaymentId>
    <GasSupplierId>1</GasSupplierId>
    <GasSupplierName>sample string 1</GasSupplierName>
    <GasTariffId>1</GasTariffId>
    <GasTariffName>sample string 2</GasTariffName>
  </usage>
</AppCustomerPut>

multipart/form-data

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

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

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

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Email"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Phone"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="IsOilForHeating"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="AnnualOilUsageCost"

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

64
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="usage.GasSupplierId"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="usage.GasConsumption"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="usage.GasTariffId"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="usage.GasPaymentId"

64
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="usage.ElectricitySupplierId"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="usage.ElectricityConsumption"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="usage.ElectricityTariffId"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="usage.ElectricityPaymentId"

64
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="usage.GasSupplierName"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="usage.GasTariffName"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="usage.ElectricitySupplierName"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="usage.ElectricityTariffName"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

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

multipart/form-data

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

1
--MultipartDataMediaFormatterBoundary1q2w3e--