Rest API Issue - Client and website are not being set for Database, Database User & DNS Zone
Hello,
We are facing multiple issues as below while using the new Rest API (new JSON wrapper) which is a big show stopper at the moment to the 3.1 upgrade.
As this could be a very minor bug, please use the below cUrl sample to replicate the issue and I strongly hope fix should be very quicker to you.
Issue # 1: When creating a database user (sites_database_user_add), client is not being set eventhough client id is passed correctly
cURL
curl -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{"session_id": "5b5034d3c2e54d79cd641fe53f3cf3d2","client_id": "1","params": {"server_id": 1,"database_user": "c1testdbuser","database_user_prefix": "c1","database_password": "pwdtestdbuser"}}' "https://192.168.2.15:8080/remote/json.php?sites_database_user_add" -k
Issue # 2: When creating a database (sites_database_add), site & database users are not being set though correct values are passed
Issue # 3: As same as issue # 1, client is not being set when creating a dns zone
Note: Client id is being set successfully when creating a website and client & site are being set correctly when creating a ftp account. Parameters are being sent same for above failed cases and these successful cases.