r/ApacheCloudStack • • Jul 03 '25

Question createUser rest api error

My cloudstack api url for create user is like http://cloudstack-host/client/api?account=<account>&command=createUser&email=userthree%40mail.com&firstname=User&lastname=Three&password=password&response=json&username=userthree&signature=<signature>

It rejects me with 401 It is happening only in createUser and createAccount APIs If someone know what is happening here, I really appreciate for your help

1 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/instacompute Jul 04 '25

Payload shouldn’t be sent as json but individual fields. You’re better off using the cli, cloudmonkey, if you’re having programming issues.