POST api/systemUsers/add
Create new System User.
Request Information
URI Parameters
None.
Body Parameters
CreateSystemUserRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Username | string |
None. |
|
| Password | string |
None. |
|
| ConfirmPassword | string |
None. |
|
| FirstName | string |
None. |
|
| LastName | string |
None. |
|
| string |
None. |
||
| RoleId | SystemUserType |
None. |
|
| AccountIds | Collection of globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"Username": "sample string 1",
"Password": "sample string 2",
"ConfirmPassword": "sample string 3",
"FirstName": "sample string 4",
"LastName": "sample string 5",
"Email": "sample string 6",
"RoleId": 50,
"AccountIds": [
"eba9e0e2-f1e9-4d97-a4e3-0658333b1bab",
"0b86fd03-6326-480c-8943-e58f8a47a7be"
]
}
application/xml, text/xml
Sample:
<CreateSystemUserRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Requests">
<AccountIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>eba9e0e2-f1e9-4d97-a4e3-0658333b1bab</d2p1:guid>
<d2p1:guid>0b86fd03-6326-480c-8943-e58f8a47a7be</d2p1:guid>
</AccountIds>
<ConfirmPassword>sample string 3</ConfirmPassword>
<Email>sample string 6</Email>
<FirstName>sample string 4</FirstName>
<LastName>sample string 5</LastName>
<Password>sample string 2</Password>
<RoleId>Admin</RoleId>
<Username>sample string 1</Username>
</CreateSystemUserRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Errors | Collection of Error |
None. |
|
| IsValid | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Errors": [
{
"PropertyName": "sample string 1",
"Message": "sample string 2"
},
{
"PropertyName": "sample string 1",
"Message": "sample string 2"
}
],
"IsValid": false
}
application/xml, text/xml
Sample:
<ApiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Alice.Dto.Core">
<Errors>
<Error>
<Message>sample string 2</Message>
<PropertyName>sample string 1</PropertyName>
</Error>
<Error>
<Message>sample string 2</Message>
<PropertyName>sample string 1</PropertyName>
</Error>
</Errors>
</ApiResponse>