PUT Api/User
Creates a new user for the current mandator.
Request Information
URI Parameters
None.
Body Parameters
The information about the new user.
UserCreateParameter| Name | Description | Type | Additional information |
|---|---|---|---|
| string |
None. |
||
| Password | string |
None. |
|
| FirstName | string |
None. |
|
| LastName | string |
None. |
|
| IsEnabled | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Email": "sample string 1",
"Password": "sample string 2",
"FirstName": "sample string 3",
"LastName": "sample string 4",
"IsEnabled": true
}
application/xml, text/xml
Sample:
<UserCreateParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eRecruiter.Api.Parameters"> <FirstName>sample string 3</FirstName> <IsEnabled>true</IsEnabled> <LastName>sample string 4</LastName> <Email>sample string 1</Email> <Password>sample string 2</Password> </UserCreateParameter>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
The newly created user.
UserResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| FirstName | string |
None. |
|
| LastName | string |
None. |
|
| IsEnabled | boolean |
None. |
|
| UserName | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"FirstName": "sample string 2",
"LastName": "sample string 3",
"IsEnabled": true,
"UserName": "sample string 5"
}
application/xml, text/xml
Sample:
<UserResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eRecruiter.Api.Responses"> <FirstName>sample string 2</FirstName> <Id>1</Id> <IsEnabled>true</IsEnabled> <LastName>sample string 3</LastName> <UserName>sample string 5</UserName> </UserResponse>