How to create users while registering with different roles via API?

@aislam yes I am. Adding to that I’m making an AJAX call from Google Chrome console. Here is the request I am making. I used one of the app’s API key.

$.ajax({
                    dataType: 'json',
                    contentType: 'application/json; charset=utf-8',
                    url: "http://api.doorstepsolutions.co.in" + '/api/v2/user/register?login=true',
                    data: JSON.stringify({
                        "email": "storygagooooof@gmail.com",
                        "new_password": "password"
                    }),
                    cache:false,
                    method:'POST',
headers:{
"X-DreamFactory-API-Key":"API_KEY"
},
                    success:function (response) {
                        console.log(response);
                    },
                    error:function (response) {
                        console.log(response);
                        return false;
                    }
                });