POST api/pageposter

Request Information

URI Parameters

None.

Body Parameters

PagePosterModel
NameDescriptionTypeAdditional information
pageIds

Collection of string

None.

message

string

None.

link

string

None.

postType

PostType

None.

pagePostId

integer

None.

scheduledTime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "pageIds": [
    "sample string 1",
    "sample string 2"
  ],
  "message": "sample string 1",
  "link": "sample string 2",
  "postType": 1,
  "pagePostId": 1,
  "scheduledTime": "2021-07-31T06:11:32.2601119+00:00"
}

text/html

Sample:
{"pageIds":["sample string 1","sample string 2"],"message":"sample string 1","link":"sample string 2","postType":1,"pagePostId":1,"scheduledTime":"2021-07-31T06:11:32.2601119+00:00"}

application/xml, text/xml

Sample:
<PagePosterModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models.Services">
  <Link>sample string 2</Link>
  <Message>sample string 1</Message>
  <PageIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </PageIds>
  <PagePostId>1</PagePostId>
  <PostType>Photo</PostType>
  <ScheduledTime>2021-07-31T06:11:32.2601119+00:00</ScheduledTime>
</PagePosterModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.