GitHub user weizhouapache added a comment to the discussion: 401 error in 
cloudstack createUser rest api

> GET (401 error) 
> `http://host/client/api?apikey=<api-key>&command=createAccount&domainid=<domain-id>&email=userthree%40mail.com&firstname=User&lastname=Three&password=password&response=json&roleid=<role-id>&username=userthree&signature=<signature>`
> 
> POST (431 error) 
> `http://host/client/api?apikey=<api-key>&command=createAccount&response=json&signature=<signature>`
> 
> with payload `{ email: 'userth...@mail.com', firstname: 'User', lastname: 
> 'Three', username: 'userthree', password: 'password', roleid: 
> '902f63f7-3235-11f0-8e75-2a84a8b381fa', domainid: 
> '60afa7af-3235-11f0-8e75-2a84a8b381fa' }`

`sessionkey` is needed i think

GitHub link: 
https://github.com/apache/cloudstack/discussions/11146#discussioncomment-13669113

----
This is an automatically sent email for users@cloudstack.apache.org.
To unsubscribe, please send an email to: users-unsubscr...@cloudstack.apache.org

Reply via email to