Extension:Wikibase Repository/API1

For the moment this is nothing more than the landing page for the link from the API extension, and contains a more complete description of the actual parameters and formats.

Actions
Note that for editing operations the client (usually the browser) must first request an edit token.

GetItem
See also [//en.wikipedia.org/w/api.php?action=help&modules=wbgetitem api-generated help].

GetItemId
See also [//en.wikipedia.org/w/api.php?action=help&modules=wbgetitemid api-generated help].

AssociateArticle
See also [//en.wikipedia.org/w/api.php?action=help&modules=wbassociatearticle api-generated help].

LinkArticles
See also [//en.wikipedia.org/w/api.php?action=help&modules=wblinkarticles api-generated help].

AddAlias
See also [//en.wikipedia.org/w/api.php?action=help&modules=wbaddalias api-generated help].

RemoveAlias
See also [//en.wikipedia.org/w/api.php?action=help&modules=wbremovealias api-generated help].

SetDescription
See also [//en.wikipedia.org/w/api.php?action=help&modules=wbsetdescription api-generated help].

SetLabel
See also [//en.wikipedia.org/w/api.php?action=help&modules=wbsetlabel api-generated help].

SearchByName
Not implemented during Phase I

Exceptions
Exceptions may or may not be returned as web pages, but will be structured according for format if the exception is a prepared and expected condition.

See also API:Errors and warnings

Warnings

 * Use a valid warning situation as example.

A warning condition may be given together with the normal output, and it will indicate a situation where the output can be erroneous.

If the warning condition is prepared and expected, and a format is defined, it will have the following form when  is set (example)

or when the  is set (example)

Note that  is the default format and will give the help page.

Errors
If the error condition is prepared and expected, and a format is defined, it will have the following form when  is set (example)

or when the  is set (example)

Note that  is the default format and will give the help page.

Not implemented
Typical error message when an function is not implemented and  is set (example – only works with the extension)

or when the  is set (example – only works with the extension)