PUT api/ServiceOutages/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

ServiceOutage
NameDescriptionTypeAdditional information
RecordId

integer

None.

PropertyId

integer

None.

UtilityId

integer

None.

OutageStart

date

None.

OutageEnd

date

None.

OutageReportedBy

integer

None.

OutageClearedBy

integer

None.

PropertyName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "RecordId": 1,
  "PropertyId": 2,
  "UtilityId": 3,
  "OutageStart": "2024-03-28T04:35:43.0774974+00:00",
  "OutageEnd": "2024-03-28T04:35:43.0774974+00:00",
  "OutageReportedBy": 5,
  "OutageClearedBy": 1,
  "PropertyName": "sample string 6"
}

application/xml, text/xml

Sample:
<ServiceOutage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APL.Models">
  <OutageClearedBy>1</OutageClearedBy>
  <OutageEnd>2024-03-28T04:35:43.0774974+00:00</OutageEnd>
  <OutageReportedBy>5</OutageReportedBy>
  <OutageStart>2024-03-28T04:35:43.0774974+00:00</OutageStart>
  <PropertyId>2</PropertyId>
  <PropertyName>sample string 6</PropertyName>
  <RecordId>1</RecordId>
  <UtilityId>3</UtilityId>
</ServiceOutage>

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

Response Information

Resource Description

None.