Create New User

POST https://rest.webropolsurveys.com/api/v1/users/createuser

Creates a new user to Webropol, details are defined in request body. SendRegistrationEmail as true will send an email to the user to set a password (default value is recommended), CanCreateTemplate as true will allow the user to create survey templates.

Define user role (admin/user) by setting a RoleName. Admin users will have automatically rights to all upcoming surveys in UE. Admin users also have rights to manage surveys and other users and their survey rights. Users only have rights to surveys they create and to surveys which they have been given rights.

Request Body

{"UserName"=>"new-user", "RoleName"=>"string", "FirstName"=>"Jane", "LastName"=>"Doe", "Email"=>"dummy@webropol.com", "SendRegistrationEmail"=>true, "CanCreateSurvey"=>true, "CanCreateTemplate"=>true, "City"=>"Helsinki", "PostalCode"=>"00100", "Phone"=>"+1234567"}

RESPONSES

status: OK

[{"FolderId":"2edb3368-7c77-4f0d-8873-e6acf5eade70","CreatorUserId":"c7d8e697-80a6-4f95-8191-1f2c80a4b79e","Name":"My Survey Folder","GroupId":"6cb4ac57-b42d-4e15-b3ff-499f4aee543a","ParentId":"00000000-0000-0000-0000-000000000000","IsAlwaysVisible":false,"DateCreated":"0001-01-01T00:00:00"},{"FolderId":"e61f5fba-da4b-46d7-99bf-aee7b12d0954","CreatorUserId":"2c9a9ba3-3194-4ff7-ba37-5ce7100fca47","Name":"Jane Doe's Surveys","GroupId":"6cb4ac57-b42d-4e15-b3ff-499f4aee543a","ParentId":"00000000-0000-0000-0000-000000000000","IsAlwaysVisible":false,"DateCreated":"0001-01-01T00:00:00"}]