POST api/Notificaion

Request Information

URI Parameters

None.

Body Parameters

NotificationSetting
NameDescriptionTypeAdditional information
settings

Collection of Notificaion

None.

Request Formats

application/json, text/json

Sample:
{
  "settings": [
    {
      "Id": 1,
      "Page": "sample string 2",
      "NotifyAfterDays": 3
    },
    {
      "Id": 1,
      "Page": "sample string 2",
      "NotifyAfterDays": 3
    }
  ]
}

application/xml, text/xml

Sample:
<NotificationSetting xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AMS.ERPC.API.Controllers">
  <settings xmlns:d2p1="http://schemas.datacontract.org/2004/07/AMS.ERPC.API.DAL.Model.DataModel">
    <d2p1:Notificaion>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:NotifyAfterDays>3</d2p1:NotifyAfterDays>
      <d2p1:Page>sample string 2</d2p1:Page>
    </d2p1:Notificaion>
    <d2p1:Notificaion>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:NotifyAfterDays>3</d2p1:NotifyAfterDays>
      <d2p1:Page>sample string 2</d2p1:Page>
    </d2p1:Notificaion>
  </settings>
</NotificationSetting>

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

Response Information

Resource Description

None.