POST example/api/User
https://app.bwz.se/bedrock/example/api/User
Creates a User.
Request Information
URI Parameters
None.
Body Parameters
Sets a value inidcating whether this user can manage recipients or not - only effective when user is not administrator
CreateUserArgsName | Description | Type | Additional information |
---|---|---|---|
Firstname |
Sets the firstname. |
string |
None. |
Lastname |
Sets the lastname. |
string |
None. |
Sets the email. |
string |
Required Valid email adress |
|
IsAdministrator |
Sets a value indicating whether this user is administrator. |
boolean |
None. |
Password |
Sets the password. The password must contain at least 8 characters including at least one upper case and lower case letter, one number and one special character |
string |
Required |
CanUseAllPublications |
Sets a value indicating wheter this user has access to all publication or not - only effective when user is not administrator |
boolean |
None. |
CanManageRecipientLists |
Sets a value indicating whether this user can manage recipient lists or not - only effective when user is not administrator |
boolean |
None. |
UserType |
Set the type of user - BizWizard users can login via the login page - Bedrock users only via tickets created via Bedrock |
UserType |
None. |
CanManageRecipients |
Sets a value inidcating whether this user can manage recipients or not - only effective when user is not administrator |
boolean |
None. |
Request Formats
application/json, text/json
{ "Firstname": "sample string 1", "Lastname": "sample string 2", "Email": "sample string 3", "IsAdministrator": true, "Password": "sample string 5", "CanUseAllPublications": true, "CanManageRecipientLists": true, "UserType": 1, "CanManageRecipients": true }
application/xml, text/xml
<CreateUserArgs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.User"> <CanManageRecipientLists>true</CanManageRecipientLists> <CanManageRecipients>true</CanManageRecipients> <CanUseAllPublications>true</CanUseAllPublications> <Email>sample string 3</Email> <Firstname>sample string 1</Firstname> <IsAdministrator>true</IsAdministrator> <Lastname>sample string 2</Lastname> <Password>sample string 5</Password> <UserType>BIZWIZARD</UserType> </CreateUserArgs>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
The UserModel that has been created.
UserModelName | Description | Type | Additional information |
---|---|---|---|
Id |
Gets the id. |
integer |
None. |
Firstname |
Gets the firstname. |
string |
None. |
Lastname |
Gets the lastname. |
string |
None. |
Gets the email. |
string |
None. |
|
CreationDate |
Gets the creation date. |
date |
None. |
IsAdministrator |
Gets a value indicating whether this user is administrator. |
boolean |
None. |
CanUseAllPublications |
Sets a value indicating whether this user has access to all publication or not - only effective when user is not administrator |
boolean |
None. |
Password |
Gets the password. |
string |
None. |
UserType |
The type of user |
UserType |
None. |
CanManageRecipientLists |
Sets a value indicating whether this user can manage recipient lists or not - only effective when user is not administrator |
boolean |
None. |
CanManageRecipients |
Sets a value indicating whether this user can manage recipients or not - only effective when user is not administrator. |
boolean |
None. |
IsSuperUser |
Is this user a super user |
boolean |
None. |
Response Formats
application/json, text/json
{ "Id": 1, "Firstname": "sample string 2", "Lastname": "sample string 3", "Email": "sample string 4", "CreationDate": "2024-12-23T06:25:43.8712063+01:00", "IsAdministrator": true, "CanUseAllPublications": true, "Password": "sample string 8", "UserType": 1, "CanManageRecipientLists": true, "CanManageRecipients": true, "IsSuperUser": true }
application/xml, text/xml
<UserModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netoptions.BizWizard.Api.Common.Models.User"> <CanManageRecipientLists>true</CanManageRecipientLists> <CanManageRecipients>true</CanManageRecipients> <CanUseAllPublications>true</CanUseAllPublications> <CreationDate>2024-12-23T06:25:43.8712063+01:00</CreationDate> <Email>sample string 4</Email> <Firstname>sample string 2</Firstname> <Id>1</Id> <IsAdministrator>true</IsAdministrator> <IsSuperUser>true</IsSuperUser> <Lastname>sample string 3</Lastname> <Password>sample string 8</Password> <UserType>BIZWIZARD</UserType> </UserModel>