Author Topic: Issue creating user accounts via API on Alma Linux 9 with CWP  (Read 49 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Issue creating user accounts via API on Alma Linux 9 with CWP
« on: August 05, 2025, 10:54:47 PM »
I've been trying to create an account from my hosting portal with the credentials given from cwp api docs;

curl -X POST https://your-host:2304/v1/account \
  -d "key=your_api_key" \
  -d "action=add" \
  -d "domain=example.com" \
  -d "user=testuser" \
  -d "pass=StrongPass123!" \
  -d "email=user@example.com" \
  -d "package=default" \

Everything is correct because i can successfully list user accounts and also packages but trying to create account always shows;

"status": "Error",
"msj": "Check All Fields (only lower caps are allowed and no special characters or empty spaces..."

I've checked and no special characters or empty spaces in my credentials. I'd be happy to get any help on this. Thanks

Offline
*****
Re: Issue creating user accounts via API on Alma Linux 9 with CWP
« Reply #1 on: August 06, 2025, 12:15:25 AM »
I'm not an expert in the API.

But I know the username when created by the API HAS to be 6-8, no more and all lower case letters only for the username.
NO numbers or special characters.

Offline
*
Re: Issue creating user accounts via API on Alma Linux 9 with CWP
« Reply #2 on: August 06, 2025, 09:58:23 AM »
Thanks Stardust. My test credentials are not more than 8 in both username and password and only small letters. I feel probably it has something to do with my OS version? I know I had to make some changes in the cwp files for some of my other features like user account login to work. I know this works out of the box with cent OS7. Well, I'll keep searching. Thanks anyways.

Offline
*****
Re: Issue creating user accounts via API on Alma Linux 9 with CWP
« Reply #3 on: August 06, 2025, 09:29:05 PM »
I know the API works with AlmaLinux 9 and Blesta 5.11.4

Offline
***
Re: Issue creating user accounts via API on Alma Linux 9 with CWP
« Reply #4 on: August 07, 2025, 10:56:10 AM »
Check CWP logs to investigate the problem. The log files are located in:

/usr/local/cwpsrv/logs/
/usr/local/cwp/php71/var/log/