Thread:Project:Support desk/How to use mediawiki API to edit a page on local server

I created a web page on my own local server using MediaWiki. The url is "http:\localhost\mediawiki\index.php\newPage". I intend to edit the page using the MediaWiki API in PHP, and plan to use API:edit. But how can I set the title or pageid parameter? Is there any other methods to edit this page on my local server using MediaWiki API?

Thanks in advance!