POST api/notifications/appeal-schedule

This method will all user to subscribe to all appeal schedule change email notification from out platform on a per township basis

Request Information

URI Parameters

None.

Body Parameters

Instance of

AppealScheduleNotificationRequestBindingModel
NameDescriptionTypeAdditional information
UserId

integer

None.

FirstName

string

Required

Matching regular expression pattern: ([a-zA-Z .&'-]+)

Min length: 2

LastName

string

Required

Matching regular expression pattern: ([a-zA-Z0-9 .&'-]+)

Min length: 2

TownshipId

integer

Required

Email

string

Required

Matching regular expression pattern: [a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?

Min length: 5

PropertyAddressId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "userId": 1,
  "firstName": "sample string 1",
  "lastName": "sample string 2",
  "townshipId": 3,
  "email": "sample string 4",
  "propertyAddressId": 1
}

text/html

Sample:
{"userId":1,"firstName":"sample string 1","lastName":"sample string 2","townshipId":3,"email":"sample string 4","propertyAddressId":1}

application/xml, text/xml

Sample:
<AppealScheduleNotificationRequestBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ptd.Model.WebModels.NotificationBinding">
  <Email>sample string 4</Email>
  <FirstName>sample string 1</FirstName>
  <LastName>sample string 2</LastName>
  <PropertyAddressId>1</PropertyAddressId>
  <TownshipId>3</TownshipId>
  <UserId>1</UserId>
</AppealScheduleNotificationRequestBindingModel>

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

Response Information

Resource Description

True/False

boolean

Response Formats

application/json, text/json, text/html

Sample:
true

application/xml, text/xml

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