Edit an Installatron Server user.
curl -X POST https://{SERVER_IP}/users/useraccountname \
-H 'X-API-KEY: {the key= or key2= value from /usr/local/installatron/etc/settings.ini}' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '
{
"websites": [
{
"path": "sftp://exampleftpuser:exampleftppassword@website.com",
"label": "website.com",
"server": "website.com",
"reseller": "root",
"vhosts": {
"http://website.com": "httpdocs",
"http://www.website.com": "httpdocs"
}
},
{
"path": "sftp://exampleftpuser:exampleftppassword@website.com/subdomain",
"label": "subdomain.website.com",
"email": "user@mail.com",
"vhosts": {
"http://subdomain.website.com": "httpdocs/subdomain",
"https://subdomain.website.com": "httpdocs/subdomain"
}
}
]
}
'
{
"result": true,
"status": 200,
"errcode": null,
"errfield": null,
"message": "The task is complete.\n"
"data": {
"id": "useraccountname",
"parent": "root",
"type": "user",
"suspended": false,
"locale": "en",
"email": "address@website.com",
"websites": [
{
"path": "sftp://exampleftpuser:exampleftppassword@website.com",
"label": "website.com",
"server": "website.com",
"parent": "root",
"databases": [
{
"type": "mysql",
"host": "localhost",
"user": "useraccountname_mytestdb1",
"name": "useraccountname_mytestdb1",
"pass": "exampledbpassword1"
}
],
"vhosts": {
"http://website.com": "public_html"
}
},
{
"path": "sftp://exampleftpuser:exampleftppassword@website.com/subdomain",
"server": "website.com",
"label": "subdomain.website.com",
"parent": "root",
"databases": [
{
"type": "mysql",
"host": "123.123.123.123:3307",
"user": "useraccountname_mytestdb2",
"name": "useraccountname_mytestdb2",
"pass": "exampledbpassword2"
}
],
"vhosts": {
"http://subdomain.website.com": "public_html/subdomain",
"https://subdomain.website.com": "public_html/subdomain"
}
}
]
}
}
curl -X POST https://{SERVER_IP}/users/useraccountname \
-H 'X-API-KEY: {the key= or key2= value from /usr/local/installatron/etc/settings.ini}' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '
{
"package": "silver"
}
'
{
"result": true,
"status": 200,
"errcode": null,
"errfield": null,
"message": "The task is complete.\n"
"data": {
"id": "useraccountname",
"parent": "root",
"type": "user",
"suspended": false,
"locale": "en",
"email": "address@website.com",
"websites": [
{
"path": "sftp://exampleftpuser:exampleftppassword@website.com",
"label": "website.com",
"server": "website.com",
"parent": "root",
"databases": [
{
"type": "mysql",
"host": "localhost",
"user": "useraccountname_mytestdb1",
"name": "useraccountname_mytestdb1",
"pass": "exampledbpassword1"
}
],
"vhosts": {
"http://website.com": "public_html"
}
},
{
"path": "sftp://exampleftpuser:exampleftppassword@website.com/subdomain",
"server": "website.com",
"label": "subdomain.website.com",
"parent": "root",
"databases": [
{
"type": "mysql",
"host": "123.123.123.123:3307",
"user": "useraccountname_mytestdb2",
"name": "useraccountname_mytestdb2",
"pass": "exampledbpassword2"
}
],
"vhosts": {
"http://subdomain.website.com": "public_html/subdomain",
"https://subdomain.website.com": "public_html/subdomain"
}
}
]
}
}