Create User Rest Endpoint Error

Hello,

i tried the create user rest endpoint with below body:

{

"Username" : "miketyson",
"Password" : "miketyson",
"PrivateEmail" : "miketyson@localhost.com"

}

Response:

{
"Users": null,
"User": null,
"Info": [],
"Warnings": [],
"Errors": [
"An unexpected error prevented your requested action from completing. The error has been logged for the administrator to review."
]
}

Parents
  • Hi . Can you share the full HTTP request and response?

    I'm able to create a user with the same parameters using the api.ashx/v2/users.json endpoint. For example, via JavaScript in the console while logged in as a user with permissions to do so, I can run:

    $.telligent.evolution.post({
    	url: $.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/users.json',
    	data: { 
    		"Username" : "miketyson",
    		"Password" : "miketyson",
    		"PrivateEmail" : "miketyson@localhost.com"
    	}
    }).done(function(newUser){
    	console.log(newUser);
    });

    And this returns the new User entity along with "User 2106 (miketyson) was created."

    REST works outside of JavaScript, but this is an easy way to test.

  • Hi,

    I tried again the request below and it created the user however the response is still 500

    i tried the create user rest endpoint with below body:

    {

    "Username" : "miketyson",
    "Password" : "miketyson",
    "PrivateEmail" : "miketyson@localhost.com"

    }

    Response:

    {
    "Users": null,
    "User": null,
    "Info": [],
    "Warnings": [],
    "Errors": [
    "An unexpected error prevented your requested action from completing. The error has been logged for the administrator to review."
    ]
    }

Reply Children