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=uploadavatar

(main | uploadavatar)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: SocialProfile
  • License: unknown

Upload an avatar.

  • https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:SocialProfile/API/Avatar_upload
Specific parameters:
Other general parameters are available.
file

New avatar image file contents.

Must be posted as a file upload using multipart/form-data.
url

URL to fetch the file from.

token

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

This parameter is required.
Example:
Upload the image from https://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png as your avatar.
api.php?action=uploadavatar&url=https%3A//upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png&token=123ABC [open in sandbox]
Retrieved from "https://tunearch.org/wiki/Special:ApiHelp"

We use cookies (and similar technologies) to personalise content and improve The Traditional Tune Archive website.

With these cookies we collect few and indispensable information about you. With this we adapt our website and communication to your preferences. You can read more about it in our privacy policy.

If you want to manage your cookie preferences, click on Manage preferences. By clicking on Accept all, you agree to the use of all cookies. You can change or withdraw your consent at any time.

Accept all cookiesManage preferences
Something went wrong
Dismiss