MediaWiki:Apihelp-commentsubmit-description

The commentsubmit API allows to submit/post a comment after filling in the following parameters: pageID, parentID, commentText.