POST api/users
Request Information
URI Parameters
None.
Body Parameters
ImportUserModelName | Description | Type | Additional information |
---|---|---|---|
PingId |
|
globally unique identifier |
Required |
FirstName |
|
string |
Required |
LastName |
|
string |
Required |
|
string |
Required |
|
Title |
|
string |
None. |
Department |
|
string |
None. |
IsActive |
|
boolean |
None. |
RoleId |
|
integer |
Required |
Request Formats
application/json, text/json
{ "pingId": "ec2b991d-3c22-4e67-9129-3b9bf0b4b367", "firstName": "sample string 2", "lastName": "sample string 3", "email": "sample string 4", "title": "sample string 5", "department": "sample string 6", "isActive": true, "roleId": 8 }
application/xml, text/xml
<ImportUserModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.Core.Models.Imports"> <Department>sample string 6</Department> <Email>sample string 4</Email> <FirstName>sample string 2</FirstName> <IsActive>true</IsActive> <LastName>sample string 3</LastName> <PingId>ec2b991d-3c22-4e67-9129-3b9bf0b4b367</PingId> <RoleId>8</RoleId> <Title>sample string 5</Title> </ImportUserModel>
application/x-www-form-urlencoded
Response Information
Resource Description
UserViewModelName | Description | Type | Additional information |
---|---|---|---|
UserID |
User Id |
integer |
None. |
LastName |
Last Name |
string |
None. |
FirstName |
First Name |
string |
None. |
Active |
Active |
boolean |
None. |
UserName |
User Name |
string |
None. |
|
string |
None. |
Response Formats
application/json, text/json
{ "userID": 1, "lastName": "sample string 2", "firstName": "sample string 3", "active": true, "userName": "sample string 5", "email": "sample string 6" }
application/xml, text/xml
<UserViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels"> <Active>true</Active> <Email>sample string 6</Email> <FirstName>sample string 3</FirstName> <LastName>sample string 2</LastName> <UserID>1</UserID> <UserName>sample string 5</UserName> </UserViewModel>