Skip to content

Data api comments delete

Yuji Takayama edited this page Jul 10, 2013 · 1 revision

Comments: delete

Delete a comment.

Authorization is required.

Request

HTTP Request

This method accepts DELETE and POST with __method=DELETE.

DELETE https://your-host/your-mt-api.cgi/v1/sites/{blog_id}/comments/{comment_id}

Parameters

Method Parameters

Parameter Type Description
blog_id unsigned integer The blog ID.
comment_id unsigned integer The comment ID.

Query Parameters

Not available.

Request Body

Parameter Type Description
__method string This is not required but if request method is 'POST', should be set as 'DELETE'
## Response If successful, this method will return deleted [Comments](data-api-resource-comments) resource as the response body.

Status Code

Code Description
200 no error
403 Do not have permission to delete the requested comment.
404 Comment (or site) not found
405 Request method is not 'DELETE' or 'POST' with '__method=DELETE'
Clone this wiki locally