Skip to content

Data api comments insert

Masahiro Iuchi edited this page Sep 2, 2014 · 4 revisions

Comments: insert

Create a new comment on an entry.

Authorization is required.

Request

HTTP Request

This method accepts POST only.

POST https://your-host/your-mt-api.cgi/v1/sites/{blog_id}/entries/{entry_id}/comments

Parameters

Method Parameters

Parameter Type Description
blog_id unsigned integer The blog ID.
entry_id unsigned integer The entry ID.

Query Parameters

Not available.

Request Body

Parameter Type Description
comment Comments (JSON) A Comments resource for new comment.

Response

If successful, this method will return an Comments resource as the response body.

Status Code

Code Description
200 no error
403 Do not have permission to retrieve the requested comment.
404 Entry (or site) not found
Clone this wiki locally