POST api/Notifications/SaveNotifications

Request Information

URI Parameters

None.

Body Parameters

NotificationsDetails
NameDescriptionTypeAdditional information
NotificationsID

integer

None.

Title

string

None.

Category

string

None.

PhoneNumber

string

None.

CompleteMessage

string

None.

Id

integer

None.

CategoryID

integer

None.

StateID

integer

None.

DistrictID

integer

None.

BlockID

integer

None.

CropName

string

None.

CropID

integer

None.

Type

string

None.

State

string

None.

BriefText

string

None.

BlocksList

string

None.

DistricsList

string

None.

MobileApplication

boolean

None.

SMSAlert

boolean

None.

CreatedDate

string

None.

CreatedDateWeb

string

None.

Createdby

integer

None.

Updatedby

integer

None.

ImageBytes

Collection of byte

None.

LanguageType

string

None.

SMSLanguage

string

None.

RefreshDateTime

string

None.

ObjDistrictList

Collection of NotificationsDistrict

None.

ObjBlockList

Collection of NotificationsBlock

None.

ObjCropList

Collection of NotificationsCrop

None.

Request Formats

application/json, text/json

Sample:
{
  "NotificationsID": 1,
  "Title": "sample string 2",
  "Category": "sample string 3",
  "PhoneNumber": "sample string 4",
  "CompleteMessage": "sample string 5",
  "Id": 6,
  "CategoryID": 7,
  "StateID": 8,
  "DistrictID": 9,
  "BlockID": 10,
  "CropName": "sample string 11",
  "CropID": 12,
  "Type": "sample string 13",
  "State": "sample string 14",
  "BriefText": "sample string 15",
  "BlocksList": "sample string 16",
  "DistricsList": "sample string 17",
  "MobileApplication": true,
  "SMSAlert": true,
  "CreatedDate": "sample string 20",
  "CreatedDateWeb": "sample string 21",
  "Createdby": 22,
  "Updatedby": 23,
  "ImageBytes": "QEA=",
  "LanguageType": "sample string 24",
  "SMSLanguage": "sample string 25",
  "RefreshDateTime": "sample string 26",
  "ObjDistrictList": [
    {
      "NDMID": 1,
      "NotificationsID": 2,
      "DistrictID": 3,
      "DistictName": "sample string 4",
      "StateID": 5,
      "Createdby": 6,
      "Updatedby": 7,
      "RefreshDateTime": "sample string 8"
    },
    {
      "NDMID": 1,
      "NotificationsID": 2,
      "DistrictID": 3,
      "DistictName": "sample string 4",
      "StateID": 5,
      "Createdby": 6,
      "Updatedby": 7,
      "RefreshDateTime": "sample string 8"
    }
  ],
  "ObjBlockList": [
    {
      "NBMID": 1,
      "NotificationsID": 2,
      "BlockName": "sample string 3",
      "BlockID": 4,
      "DistrictID": 5,
      "Createdby": 6,
      "Updatedby": 7,
      "RefreshDateTime": "sample string 8"
    },
    {
      "NBMID": 1,
      "NotificationsID": 2,
      "BlockName": "sample string 3",
      "BlockID": 4,
      "DistrictID": 5,
      "Createdby": 6,
      "Updatedby": 7,
      "RefreshDateTime": "sample string 8"
    }
  ],
  "ObjCropList": [
    {
      "NCMID": 1,
      "NotificationsID": 2,
      "CropName": "sample string 3",
      "CropID": 4,
      "Createdby": 5,
      "Updatedby": 6,
      "RefreshDateTime": "sample string 7"
    },
    {
      "NCMID": 1,
      "NotificationsID": 2,
      "CropName": "sample string 3",
      "CropID": 4,
      "Createdby": 5,
      "Updatedby": 6,
      "RefreshDateTime": "sample string 7"
    }
  ]
}

application/xml, text/xml

Sample:
<NotificationsDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGROMET_Notifications">
  <BlockID>10</BlockID>
  <BlocksList>sample string 16</BlocksList>
  <BriefText>sample string 15</BriefText>
  <Category>sample string 3</Category>
  <CategoryID>7</CategoryID>
  <CompleteMessage>sample string 5</CompleteMessage>
  <CreatedDate>sample string 20</CreatedDate>
  <CreatedDateWeb>sample string 21</CreatedDateWeb>
  <Createdby>22</Createdby>
  <CropID>12</CropID>
  <CropName>sample string 11</CropName>
  <DistricsList>sample string 17</DistricsList>
  <DistrictID>9</DistrictID>
  <Id>6</Id>
  <ImageBytes>QEA=</ImageBytes>
  <LanguageType>sample string 24</LanguageType>
  <MobileApplication>true</MobileApplication>
  <NotificationsID>1</NotificationsID>
  <ObjBlockList>
    <NotificationsBlock>
      <BlockID>4</BlockID>
      <BlockName>sample string 3</BlockName>
      <Createdby>6</Createdby>
      <DistrictID>5</DistrictID>
      <NBMID>1</NBMID>
      <NotificationsID>2</NotificationsID>
      <RefreshDateTime>sample string 8</RefreshDateTime>
      <Updatedby>7</Updatedby>
    </NotificationsBlock>
    <NotificationsBlock>
      <BlockID>4</BlockID>
      <BlockName>sample string 3</BlockName>
      <Createdby>6</Createdby>
      <DistrictID>5</DistrictID>
      <NBMID>1</NBMID>
      <NotificationsID>2</NotificationsID>
      <RefreshDateTime>sample string 8</RefreshDateTime>
      <Updatedby>7</Updatedby>
    </NotificationsBlock>
  </ObjBlockList>
  <ObjCropList>
    <NotificationsCrop>
      <Createdby>5</Createdby>
      <CropID>4</CropID>
      <CropName>sample string 3</CropName>
      <NCMID>1</NCMID>
      <NotificationsID>2</NotificationsID>
      <RefreshDateTime>sample string 7</RefreshDateTime>
      <Updatedby>6</Updatedby>
    </NotificationsCrop>
    <NotificationsCrop>
      <Createdby>5</Createdby>
      <CropID>4</CropID>
      <CropName>sample string 3</CropName>
      <NCMID>1</NCMID>
      <NotificationsID>2</NotificationsID>
      <RefreshDateTime>sample string 7</RefreshDateTime>
      <Updatedby>6</Updatedby>
    </NotificationsCrop>
  </ObjCropList>
  <ObjDistrictList>
    <NotificationsDistrict>
      <Createdby>6</Createdby>
      <DistictName>sample string 4</DistictName>
      <DistrictID>3</DistrictID>
      <NDMID>1</NDMID>
      <NotificationsID>2</NotificationsID>
      <RefreshDateTime>sample string 8</RefreshDateTime>
      <StateID>5</StateID>
      <Updatedby>7</Updatedby>
    </NotificationsDistrict>
    <NotificationsDistrict>
      <Createdby>6</Createdby>
      <DistictName>sample string 4</DistictName>
      <DistrictID>3</DistrictID>
      <NDMID>1</NDMID>
      <NotificationsID>2</NotificationsID>
      <RefreshDateTime>sample string 8</RefreshDateTime>
      <StateID>5</StateID>
      <Updatedby>7</Updatedby>
    </NotificationsDistrict>
  </ObjDistrictList>
  <PhoneNumber>sample string 4</PhoneNumber>
  <RefreshDateTime>sample string 26</RefreshDateTime>
  <SMSAlert>true</SMSAlert>
  <SMSLanguage>sample string 25</SMSLanguage>
  <State>sample string 14</State>
  <StateID>8</StateID>
  <Title>sample string 2</Title>
  <Type>sample string 13</Type>
  <Updatedby>23</Updatedby>
</NotificationsDetails>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

TransactionDetails
NameDescriptionTypeAdditional information
IsSuccessful

boolean

None.

SuccessMessage

string

None.

ErrorMessage

string

None.

NewID

integer

None.

FileUrl

string

None.

Response Formats

application/json, text/json

Sample:
{
  "IsSuccessful": true,
  "SuccessMessage": "sample string 2",
  "ErrorMessage": "sample string 3",
  "NewID": 4,
  "FileUrl": "sample string 5"
}

application/xml, text/xml

Sample:
<TransactionDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGROMET_COMMON">
  <ErrorMessage>sample string 3</ErrorMessage>
  <FileUrl>sample string 5</FileUrl>
  <IsSuccessful>true</IsSuccessful>
  <NewID>4</NewID>
  <SuccessMessage>sample string 2</SuccessMessage>
</TransactionDetails>