POST api/NS/SaveNSList

Save Notification Setting

Request Information

Body Parameters

NSListModel
NameDescriptionTypeAdditional information
Items

Collection of NSModel

None.

UserID

integer

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "UserID": 1,
      "NotificationType": 2,
      "IsActive": true
    },
    {
      "UserID": 1,
      "NotificationType": 2,
      "IsActive": true
    }
  ],
  "UserID": 1,
  "Token": "sample string 2",
  "Language": "sample string 3",
  "AppId": "sample string 4"
}

application/xml, text/xml

Sample:
<NSListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 4</AppId>
  <Language>sample string 3</Language>
  <Token>sample string 2</Token>
  <Items>
    <NSModel>
      <IsActive>true</IsActive>
      <NotificationType>2</NotificationType>
      <UserID>1</UserID>
    </NSModel>
    <NSModel>
      <IsActive>true</IsActive>
      <NotificationType>2</NotificationType>
      <UserID>1</UserID>
    </NSModel>
  </Items>
  <UserID>1</UserID>
</NSListModel>

Response Information

Resource Description

State
0. Success
1000 Failed

BaseResult
NameDescriptionTypeAdditional information
State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "State": 1
}

application/xml, text/xml

Sample:
<BaseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
</BaseResult>