POST api/NewsandAlertsManagement/SaveNewsAndAlerts

To update News and Alerts

Request Information

URI Parameters

None.

Body Parameters

NewsAndAlertsInputModel
NameDescriptionTypeAdditional information
Id

Gets or Sets Id

integer

None.

EffectiveStartDate

Gets or Sets Effective Start Date

date

None.

EffectiveEndDate

Gets or Sets Effective End Date

date

None.

InstanceIds

Gets or Sets

Collection of integer

None.

Contents

Gets or Sets News And Alerts Content

Collection of NewsAndAlertsContentInputModel

None.

Request Formats

application/json, text/json

Sample:
{
  "Contents": [
    {
      "Id": 1,
      "LanguageId": 2,
      "Caption": "sample string 3",
      "TextContent": "sample string 4",
      "FileName": "sample string 5"
    },
    {
      "Id": 1,
      "LanguageId": 2,
      "Caption": "sample string 3",
      "TextContent": "sample string 4",
      "FileName": "sample string 5"
    }
  ],
  "Id": 1,
  "EffectiveStartDate": "2024-04-25T13:05:08.6565216-07:00",
  "EffectiveEndDate": "2024-04-25T13:05:08.6565216-07:00",
  "InstanceIds": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<NewsAndAlertsInputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GBG.AS.AgentPortal.API.Areas.Admin.Models">
  <Contents>
    <NewsAndAlertsContentInputModel>
      <Caption>sample string 3</Caption>
      <FileName>sample string 5</FileName>
      <Id>1</Id>
      <LanguageId>2</LanguageId>
      <TextContent>sample string 4</TextContent>
    </NewsAndAlertsContentInputModel>
    <NewsAndAlertsContentInputModel>
      <Caption>sample string 3</Caption>
      <FileName>sample string 5</FileName>
      <Id>1</Id>
      <LanguageId>2</LanguageId>
      <TextContent>sample string 4</TextContent>
    </NewsAndAlertsContentInputModel>
  </Contents>
  <EffectiveEndDate>2024-04-25T13:05:08.6565216-07:00</EffectiveEndDate>
  <EffectiveStartDate>2024-04-25T13:05:08.6565216-07:00</EffectiveStartDate>
  <Id>1</Id>
  <InstanceIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </InstanceIds>
</NewsAndAlertsInputModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>