POST api/v{version}/contents/comments

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

AddCommentViewModel
NameDescriptionTypeAdditional information
Body

string

Required

String length: inclusive between 5 and 1000

ReplyTo

integer

None.

EntityId

Represent Entity Type Id

byte

None.

ContentId

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "Body": "sample string 1",
  "ReplyTo": 1,
  "EntityId": 64,
  "ContentId": 1
}

application/xml, text/xml

Sample:
<AddCommentViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FastFixCore.BindingModels">
  <Body>sample string 1</Body>
  <ContentId>1</ContentId>
  <EntityId>64</EntityId>
  <ReplyTo>1</ReplyTo>
</AddCommentViewModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.