Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PUT
/api/v1/outage-notices

Parameters

Request Body{

Code Block
languagec#
{
Id: "123"

...


"Services": [

...


11

...


],

...


"EnglishHeaderText": "en updated header",

...


"FrenchHeaderText": "fr updated header",

...


"EnglishBodyText": "en updated body",

...


"FrenchBodyText": "fr updated body",

...


"StartDate": "2020-10-19",

...


"EndDate": "2020-10-19"

...


}

Returns

200 OK - Outage Notice

Example

Code Block
languagec#
var outageNotice = new OutageNotice

...


{

...


Id = 123,

...


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.Update(outageNotice);