User:Zaycodes/Sandbox/API:Stashedit

Example
Making any POST request is a multi-step process:


 * 1) Log in, via one of the methods described on.
 * 2) GET an edit/CSRF token as shown here API:Tokens
 * 3) Send a POST request, with the CSRF token, to prepare an edit in shared cache.

The sample codes below cover these steps.

Additional notes

 * This is intended to be used via AJAX from the edit form to improve the performance of the page save.