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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

SetAdditionalServiceDataContract
NameDescriptionTypeAdditional information
Name

string

None.

Description

string

None.

ProviderGroupId

integer

None.

PropertyServiceType

EnumDataContract

None.

IsPaidByOwner

boolean

None.

AdditionalServiceType

AdditionalServiceType

None.

Readings

Dictionary of string [key] and date [value]

None.

Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Description": "sample string 2",
  "ProviderGroupId": 3,
  "PropertyServiceType": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  },
  "IsPaidByOwner": true,
  "AdditionalServiceType": 0,
  "Readings": {
    "sample string 1": "2018-11-12T19:43:21.221077Z",
    "sample string 3": "2018-11-12T19:43:21.221077Z"
  },
  "Id": 5
}

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 'SetAdditionalServiceDataContract'.

Response Information

Resource Description

AdditionalServiceDataContract
NameDescriptionTypeAdditional information
Name

string

None.

Description

string

None.

ProviderGroupId

integer

None.

ProviderGroupName

string

None.

PropertyServiceType

EnumDataContract

None.

IsPaidByOwner

boolean

None.

AdditionalServiceType

AdditionalServiceType

None.

CreatedDate

date

None.

Readings

Collection of 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,
  "AdditionalServiceType": 0,
  "CreatedDate": "2018-11-12T19:43:21.221077Z",
  "Readings": [
    {
      "Reading": "sample string 1",
      "ReadingDate": "2018-11-12T19:43:21.221077Z",
      "CreatedDate": "2018-11-12T19:43:21.221077Z"
    },
    {
      "Reading": "sample string 1",
      "ReadingDate": "2018-11-12T19:43:21.221077Z",
      "CreatedDate": "2018-11-12T19:43:21.221077Z"
    }
  ],
  "Id": 7
}