POST api/ServiceOutages

Request Information

URI Parameters

None.

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": "2020-01-19T04:05:20.6354625+00:00",
  "OutageEnd": "2020-01-19T04:05:20.6354625+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>2020-01-19T04:05:20.6354625+00:00</OutageEnd>
  <OutageReportedBy>5</OutageReportedBy>
  <OutageStart>2020-01-19T04:05:20.6354625+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

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.

Response Formats

application/json, text/json

Sample:
{
  "RecordId": 1,
  "PropertyId": 2,
  "UtilityId": 3,
  "OutageStart": "2020-01-19T04:05:20.6354625+00:00",
  "OutageEnd": "2020-01-19T04:05:20.6354625+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>2020-01-19T04:05:20.6354625+00:00</OutageEnd>
  <OutageReportedBy>5</OutageReportedBy>
  <OutageStart>2020-01-19T04:05:20.6354625+00:00</OutageStart>
  <PropertyId>2</PropertyId>
  <PropertyName>sample string 6</PropertyName>
  <RecordId>1</RecordId>
  <UtilityId>3</UtilityId>
</ServiceOutage>