POST v1/persons/person
Creates a new user for the authenticated user
Request Information
URI Parameters
None.
Body Parameters
Information about a new user
PersonModelName | Description | Type | Additional Information |
---|---|---|---|
ID |
The person's unique identifier. |
string |
None. |
EmployeeID |
The unique identifier of the employee as specified when the person was created. |
string |
None. |
FirstName |
The person's first name. |
string |
None. |
LastName |
The person's last name. |
string |
None. |
The person's email address. |
string |
None. |
|
JobTitle |
The person's job title. |
string |
None. |
Location |
The person's location. |
string |
None. |
IsNew |
True, if the person is a new user. False, otherwise. |
boolean |
None. |
Team |
The person's team. |
TeamModel |
None. |
Manager |
The person's manager. |
PersonLightModel |
None. |
Request Formats
application/json, text/json, text/html
Sample:
{ "ID": "sample string 1", "EmployeeID": "sample string 2", "FirstName": "sample string 3", "LastName": "sample string 4", "Email": "sample string 5", "JobTitle": "sample string 6", "Location": "sample string 7", "IsNew": true, "Team": { "ID": "sample string 1", "Name": "sample string 2" }, "Manager": { "ID": "sample string 1", "FirstName": "sample string 2", "LastName": "sample string 3", "Email": "sample string 4" } }
application/xml, text/xml
Sample:
<PersonModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KAPTA.Domain.ViewModel.v1"> <Email>sample string 5</Email> <EmployeeID>sample string 2</EmployeeID> <FirstName>sample string 3</FirstName> <ID>sample string 1</ID> <IsNew>true</IsNew> <JobTitle>sample string 6</JobTitle> <LastName>sample string 4</LastName> <Location>sample string 7</Location> <Manager> <Email>sample string 4</Email> <FirstName>sample string 2</FirstName> <ID>sample string 1</ID> <LastName>sample string 3</LastName> </Manager> <Team> <ID>sample string 1</ID> <Name>sample string 2</Name> </Team> </PersonModel>
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample:
Sample not available.