POST api/comments

Request Information

URI Parameters

None.

Body Parameters

Comment
NameDescriptionTypeAdditional information
Name

string

Required

Email

string

Required

Content

string

Required

IsApproved

boolean

None.

Page

Page

None.

PageId

integer

None.

Id

integer

None.

CreatedAt

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "Email": "sample string 2",
  "Content": "sample string 3",
  "IsApproved": true,
  "Page": {
    "Name": null,
    "Slug": "sample string 1",
    "Content": {
      "Value": "sample string 1"
    },
    "Summary": {
      "Value": "sample string 1"
    },
    "IsCommentable": true,
    "IsFeatured": true,
    "Type": 0,
    "PublishedAt": "May 10 2026",
    "UserId": "sample string 4",
    "Category": {
      "Name": {
        "Value": "sample string 1"
      },
      "Pages": [],
      "Id": 1,
      "CreatedAt": "May 10 2026"
    },
    "CategoryId": 1,
    "MainImage": null,
    "Images": [
      {
        "Description": {
          "Value": "sample string 1"
        },
        "Type": 0,
        "FilePath": "sample string 1",
        "Id": 2,
        "CreatedAt": "May 10 2026"
      },
      {
        "Description": {
          "Value": "sample string 1"
        },
        "Type": 0,
        "FilePath": "sample string 1",
        "Id": 2,
        "CreatedAt": "May 10 2026"
      }
    ],
    "Files": [
      {
        "Name": "sample string 1",
        "PageId": 1,
        "FilePath": "sample string 2",
        "Id": 3,
        "CreatedAt": "May 10 2026"
      },
      {
        "Name": "sample string 1",
        "PageId": 1,
        "FilePath": "sample string 2",
        "Id": 3,
        "CreatedAt": "May 10 2026"
      }
    ],
    "Children": [],
    "Comments": [],
    "Gallery": [
      {
        "Description": {
          "Value": "sample string 1"
        },
        "Type": 0,
        "FilePath": "sample string 1",
        "Id": 2,
        "CreatedAt": "May 10 2026"
      },
      {
        "Description": {
          "Value": "sample string 1"
        },
        "Type": 0,
        "FilePath": "sample string 1",
        "Id": 2,
        "CreatedAt": "May 10 2026"
      }
    ],
    "Id": 5,
    "CreatedAt": "May 10 2026"
  },
  "PageId": 5,
  "Id": 6,
  "CreatedAt": "May 10 2026"
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.