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": [
"6c593648-94ca-41b7-a655-a7b0b05a0dfc",
"4661b8ef-0849-4c29-9d57-d8a52a11685e"
]
}
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>6c593648-94ca-41b7-a655-a7b0b05a0dfc</d2p1:guid>
<d2p1:guid>4661b8ef-0849-4c29-9d57-d8a52a11685e</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>