1

Create account by http request

Topic: Create account by http request

In Online platform(cms), we can create account without resource
But with http request, we can not create account without resource.
is there any way to do it?

2

Create account by http request

Re: Create account by http request

Hello!

Account always has resource and its user (user-creator), so when you click to create account on CMS there is always send request to create resource (svc=core/create_resource command).


To create new account it can used 2 variants :

1. For new user which is not yet exist
First you need to execute request to create user - core/create_user
Then you need to execute request to create resource under this user - core/create_resource
After you need to execute request to create account for  created resource - account/create_account

2. To create account if the user is already created in system. it's possible for users which have not own accounts (on CMS site in user settings you can see to which account belongs)
For this case you can use ID user existed, so you just create resource under this user and then bind billing plan to resource.

Diana Cheley
Wialon Hosting Expert
Gurtam