API:SetPageLanguage

Token
To change the page language for a page, an edit token is required via .

Changing page language
The language for a page can be changed using action=setpagelanguage.

Possible errors
In addition to errors>Special:MyLanguage/API:Errors and warnings#Standard error messages|the usual stuff: