MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=granthaannotationedit

(main | granthaannotationedit)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: GranthaAnnotations
  • License: GPL-2.0-or-later

Create, update, or delete one annotation.

Specific parameters:
Other general parameters are available.
op

Whether to save (create or update) or delete.

One of the following values: delete, save
Default: save
id

Client-generated annotation id.

This parameter is required.
page

Page the annotation belongs to. Required when saving.

type

Annotation type. Required when saving.

One of the following values: bookmark, note
quote

The quoted passage the annotation anchors to.

Default: (empty)
text

The note text, or a bookmark's name.

Default: (empty)
color

Optional highlight colour.

ts

Creation timestamp from the client, for annotations saved while offline.

token

A "csrf" token retrieved from action=query&meta=tokens

This parameter is required.