Skip to content

DataAPI SDK english MT.DataAPI Endpoint method createReplyComment

Taku AMANO edited this page Aug 28, 2013 · 3 revisions

createReplyComment

Create a new reply comment.

POST https://your-host/your-mt-api.cgi/v1/sites/:site_id/entries/:entry_id/comments/:comment_id/replies Detail

Parameters

Name Type Required Description
siteId Number | Object | Function yes Site ID
entryId Number | Object | Function yes Entry ID
commentId Number | Object | Function yes Comment ID of the parent
commentData Object | HTMLFormElement yes A comment data
callback Function no

Returns

XMLHttpRequest: A XMLHttpRequest object

Example

api.createReplyComment(siteId, entryId, commentId, commentData, function(response) {
  if (response.error) {
    // Handle error
    return;
  }

  // Do stuff
});
Clone this wiki locally