POST api/tenancy/{id}/setadditionalservice
Create/Update additional service on tenancy
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
Dezrez.Core.DataContracts.External.Api.Lettings.Command.SetAdditionalServiceDataContractName | Description | Type | Additional information |
---|---|---|---|
Name | string |
None. |
|
Description | string |
None. |
|
ProviderGroupId | integer |
None. |
|
PropertyServiceType | Dezrez.Core.DataContracts.External.Api.System.EnumDataContract |
None. |
|
IsPaidByOwner | boolean |
None. |
|
Notified | boolean |
None. |
|
AdditionalServiceType | Dezrez.Core.DataContracts.External.Api.Lettings.Command.AdditionalServiceType |
None. |
|
Readings | Dictionary of string [key] and date [value] |
None. |
|
Id | integer |
None. |
Request Formats
application/x-www-form-urlencoded
Sample:
Sample not available.
application/json, text/json
Sample:
{ "Name": "sample string 1", "Description": "sample string 2", "ProviderGroupId": 1, "PropertyServiceType": { "Id": 1, "Name": "sample string 2", "SystemName": "sample string 3" }, "IsPaidByOwner": true, "Notified": true, "AdditionalServiceType": 0, "Readings": { "sample string 1": "2024-10-30T15:16:41.1845755Z", "sample string 3": "2024-10-30T15:16:41.1845755Z" }, "Id": 5 }
Response Information
Resource Description
Dezrez.Core.DataContracts.External.Api.Lettings.Query.AdditionalServiceDataContractName | Description | Type | Additional information |
---|---|---|---|
Name | string |
None. |
|
Description | string |
None. |
|
ProviderGroupId | integer |
None. |
|
ProviderGroupName | string |
None. |
|
PropertyServiceType | Dezrez.Core.DataContracts.External.Api.System.EnumDataContract |
None. |
|
IsPaidByOwner | boolean |
None. |
|
Notified | boolean |
None. |
|
AdditionalServiceType | Dezrez.Core.DataContracts.External.Api.Lettings.Command.AdditionalServiceType |
None. |
|
CreatedDate | date |
None. |
|
Readings | Collection of Dezrez.Core.DataContracts.External.Api.Lettings.Query.ReadingDataContract |
None. |
|
Id | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "Name": "sample string 1", "Description": "sample string 2", "ProviderGroupId": 3, "ProviderGroupName": "sample string 4", "PropertyServiceType": { "Id": 1, "Name": "sample string 2", "SystemName": "sample string 3" }, "IsPaidByOwner": true, "Notified": true, "AdditionalServiceType": 0, "CreatedDate": "2024-10-30T15:16:41.1845755Z", "Readings": [ { "Reading": "sample string 1", "ReadingDate": "2024-10-30T15:16:41.1845755Z", "CreatedDate": "2024-10-30T15:16:41.1845755Z", "Id": 3 }, { "Reading": "sample string 1", "ReadingDate": "2024-10-30T15:16:41.1845755Z", "CreatedDate": "2024-10-30T15:16:41.1845755Z", "Id": 3 } ], "Id": 8 }