edit-page ( title text summary params -- assoc )
MediaWiki API

Prev:token-call ( params -- assoc )
Next:move-page ( from to reason params -- assoc )


Vocabulary
mediawiki.api

Inputs
titlea page title
texta page content
summaryan edit summary
paramsan assoc of additional parameters (section, minor)


Outputs
assoca parsed JSON result


Word description
Changes the content of a page. In conjunction with page-content, it uses the revision timstamp and thetimestamp of when you begin editing for edit-conflictdetection.

You can disable the bot flag by setting botflag to f:
f botflag set-global


Definition


:: edit-page ( title text summary params -- assoc )
[
"edit" "action" ,, title "title" ,, summary "summary" ,,
text "text" ,, curtimestamp get "now" or
"starttimestamp" ,, basetimestamp get "now" or
"basetimestamp" ,,
] { } make botflag get { { "bot" t } } { } ? params
[ assoc-union ] bi@ token-call ;