POST api/role/lettings/{id}/saveutility
Add or Update a utility for the letting role
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The letting role id |
integer |
Required |
Body Parameters
The details of the utility to be added
Dezrez.Core.DataContracts.External.Api.Role.Command.SaveUtility.SaveUtilityDataContractName | Description | Type | Additional information |
---|---|---|---|
UtilityType | Dezrez.Core.DataContracts.External.Api.System.EnumDataContract |
None. |
|
SupplierGroupId | integer |
None. |
|
MeterReading | string |
None. |
|
ReadingDate | date |
None. |
|
BillId | integer |
None. |
|
Id | integer |
None. |
Request Formats
application/x-www-form-urlencoded
Sample:
Sample not available.
application/json, text/json
Sample:
{ "UtilityType": { "Id": 1, "Name": "sample string 2", "SystemName": "sample string 3" }, "SupplierGroupId": 1, "MeterReading": "sample string 2", "ReadingDate": "2024-10-30T07:27:05.2592552Z", "BillId": 1, "Id": 4 }
Response Information
Resource Description
Dezrez.Core.DataContracts.External.Api.Role.Query.Get.Marketing.UtilityDataContractName | Description | Type | Additional information |
---|---|---|---|
UtilityType | Dezrez.Core.DataContracts.External.Api.System.EnumDataContract |
None. |
|
Supplier | Dezrez.Core.DataContracts.External.Api.Group.Query.Get.PeopleGroupDataContract |
None. |
|
MeterReading | string |
None. |
|
ReadingDate | date |
None. |
|
Id | integer |
None. |
Response Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.