...
POST
/api/v1/outage-notices
Parameters
...
Parameter | Description | Parameter Type |
---|---|---|
OutageNotice | Outage Notice object | request body |
Sample request body
Code Block | ||
---|---|---|
| ||
{ "Services": |
...
[ 11 ], "EnglishHeaderText": "string", |
...
"FrenchHeaderText": "string", |
...
"EnglishBodyText": "string", |
...
"FrenchBodyText": "string", |
...
"StartDate": "2020-10-19", |
...
"EndDate": "2020-10-19" |
...
} |
Returns
200 OK - OutageNoticeOutage Notice
Example
Code Block | ||
---|---|---|
| ||
var outageNotice = new OutageNoticeDTO |
...
{ Services = new List<int> {2, 7, 11}, |
...
EnglishHeaderText = "header text en", |
...
FrenchHeaderText = "header text fr", |
...
EnglishBodyText = "english body en", |
...
FrenchBodyText = "french body text", |
...
StartDate = DateTime.Now, |
...
EndDate = DateTime.Now.AddDays(5) |
...
}; |
...
var notice = await _outageNoticeManager.Create(outageNotice); |