POST api/role/lettings/{id}/saveutility

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

SaveUtilityDataContract
NameDescriptionTypeAdditional information
UtilityType

EnumDataContract

None.

SupplierGroupId

integer

None.

MeterReading

string

None.

ReadingDate

date

None.

BillId

integer

None.

Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UtilityType": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  },
  "SupplierGroupId": 1,
  "MeterReading": "sample string 2",
  "ReadingDate": "2018-11-17T03:32:00.7929183Z",
  "BillId": 1,
  "Id": 4
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SaveUtilityDataContract'.

Response Information

Resource Description

UtilityDataContract
NameDescriptionTypeAdditional information
UtilityType

EnumDataContract

None.

Supplier

PeopleGroupDataContract

None.

MeterReading

string

None.

ReadingDate

date

None.

Id

integer

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'Dezrez.Core.DataContracts.External.Api.Group.Query.Get.PreferredCompanyDataContract'. Path 'Supplier.PreferredCompanies[0].Group.PreferredCompanies'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'Dezrez.Core.DataContracts.External.Api.Group.Query.Get.PreferredCompanyDataContract'. Path 'Supplier.PreferredCompanies[0].Group.PreferredCompanies'.