Update WordPress site admin password

This function updates a WordPress® cPAddon instance's administrator password.

Note:

You must install the WordPress Manager cPanel plugin to access this API function.

Authorizations:
query Parameters
id
required
string

The cPAddon instance's unique ID.

Note:

You can retrieve an instance ID with the get_instances function.

Example: id=cPanel__Blogs__WordPressX.0.1491917088
password
required
string

The cPAddon instance's new administrator password.

Example: password=luggage12345

Responses

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object

Request samples

uapi --output=jsonpretty \
  --user=username \
  WordPressInstanceManager \
  change_admin_password \
  id='cPanel__Blogs__WordPressX.0.1491917088' \
  password='luggage12345'

Response samples

Content type
application/json
{
  • "apiversion": 3,
  • "func": "change_admin_password",
  • "module": "WordPressInstanceManager",
  • "result": {
    • "data": null,
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}