POST api/contentgadget

Request Information

URI Parameters

None.

Body Parameters

ContentGadget
NameDescriptionTypeAdditional information
ContentId

integer

None.

Title

string

None.

Content

string

None.

Owner

integer

None.

CreatedDate

date

None.

LastModifiedBy

integer

None.

ModifiedDate

date

None.

IsActive

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ContentId": 1,
  "Title": "sample string 2",
  "Content": "sample string 3",
  "Owner": 4,
  "CreatedDate": "2021-07-31T06:20:28.0178688+00:00",
  "LastModifiedBy": 6,
  "ModifiedDate": "2021-07-31T06:20:28.0178688+00:00",
  "IsActive": true
}

text/html

Sample:
{"ContentId":1,"Title":"sample string 2","Content":"sample string 3","Owner":4,"CreatedDate":"2021-07-31T06:20:28.0178688+00:00","LastModifiedBy":6,"ModifiedDate":"2021-07-31T06:20:28.0178688+00:00","IsActive":true}

application/xml, text/xml

Sample:
<ContentGadget xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">
  <Content>sample string 3</Content>
  <ContentId>1</ContentId>
  <CreatedDate>2021-07-31T06:20:28.0178688+00:00</CreatedDate>
  <IsActive>true</IsActive>
  <LastModifiedBy>6</LastModifiedBy>
  <ModifiedDate>2021-07-31T06:20:28.0178688+00:00</ModifiedDate>
  <Owner>4</Owner>
  <Title>sample string 2</Title>
</ContentGadget>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.