POST api/pageposter/leadmagnet

Request Information

URI Parameters

None.

Body Parameters

LeadMagnetPostInputModel
NameDescriptionTypeAdditional information
pageId

string

None.

pagePostId

integer

None.

description

string

None.

Request Formats

application/json, text/json

Sample:
{
  "pageId": "sample string 1",
  "pagePostId": 2,
  "description": "sample string 3"
}

text/html

Sample:
{"pageId":"sample string 1","pagePostId":2,"description":"sample string 3"}

application/xml, text/xml

Sample:
<LeadMagnetPostInputModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models.Services">
  <Description>sample string 3</Description>
  <PageId>sample string 1</PageId>
  <PagePostId>2</PagePostId>
</LeadMagnetPostInputModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.