文章 Create Comment REST 端点

URLs

POST api/v1/comments.xml (or .json)

CREATE a comment.

请求参数

名称

类型

描述

必需

默认值

选项

ContentId

Guid?

Either both ContentId and ContentTypeId or ContentUrl are required

ContentTypeId

Guid?

Either both ContentId and ContentTypeId or ContentUrl are required

ContentUrl

string

Either ContentUrl or both ContentId and ContentTypeId are required. ContentUrl requires authentication using OAuth.

ParentCommentId

Guid?

CommentId of the parent if replying to a comment

Url

string

Optional explicit location of this comment

Body

string

Body of the comment

CommentTypeId

Guid?

Categorization type

IsApproved

bool?

Approved status of the comment

ExtendedAttributes

RestExtendedAttributes

Extended Attributes

CreatedDate

DateTime?

Date and time the comment was created. The current time will be used if not specified.