Change password

This endpoint changes the password of the vPanel user account associated with the provided information.

HTTP Endpoint

POST https://panel.myownfreehost.net/xml-api/passwd.php

Usage

cURL


curl -X POST -u username:password -d "user=username&pass=password" "https://panel.myownfreehost.net/xml-api/passwd.php"

Python


import requests
from requests.auth import HTTPBasicAuth
from xml.etree.ElementTree import fromstring, ElementTree # Do this if you only want to get the status code.
url = "https://panel.myownfreehost.net/xml-api/passwd.php"
data = {'user': 'username', 'pass': 'password'} # For the username, use the same username you set when creating the account.
response = requests.post(url, params=data, auth=HTTPBasicAuth('username', 'password'))
print(response.text)
# Do this if you only want to get the status code.
tree = ElementTree(fromstring(response.content))
root = tree.getroot()
for child in root:
print(child[5].text) # The status code (can either be 0 or 1)

Response

💡

The above request returns XML structured like this:


<passwd>
<passwd>
<rawout>
Changing password for username
Password for username has been changed
Updating ftp passwords for username
Ftp password files updated.
Ftp vhost passwords synced
</rawout>
<services>
<app>system</app>
</services>
<services>
<app>ftp</app>
</services>
<services>
<app>mail</app>
</services>
<services>
<app>mySQL</app>
</services>
<status>1</status>
<statusmsg>Password changed for user username</statusmsg>
</passwd>
</passwd>