POST Post/Newsletter

Request Information

URI Parameters

None.

Body Parameters

Subscriber
NameDescriptionTypeAdditional information
SubscribeDate

date

None.

SubscriberId

integer

None.

Country

string

None.

EmailId

string

None.

SubscriberName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SubscribeDate": "2018-12-11T02:56:48.2987796-05:00",
  "SubscriberId": 1,
  "Country": "sample string 2",
  "EmailId": "sample string 3",
  "SubscriberName": "sample string 4"
}

application/xml, text/xml

Sample:
<Subscriber xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IdenCard.Api.Models">
  <Country>sample string 2</Country>
  <EmailId>sample string 3</EmailId>
  <SubscribeDate>2018-12-11T02:56:48.2987796-05:00</SubscribeDate>
  <SubscriberId>1</SubscriberId>
  <SubscriberName>sample string 4</SubscriberName>
</Subscriber>

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

Response Information

Resource Description

ResponseMessage
NameDescriptionTypeAdditional information
status

integer

None.

code

integer

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status": 1,
  "code": 2,
  "message": "sample string 3"
}

application/xml, text/xml

Sample:
<CommonHelper.ResponseMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IdenCard.Api">
  <code>2</code>
  <message>sample string 3</message>
  <status>1</status>
</CommonHelper.ResponseMessage>