POST v2/Users
Create a user
Request Information
URI Parameters
None.
Body Parameters
Lhp.EquipmentIntelligence.WebApi.Client.Models.UserCreateName | Description | Type | Additional information |
---|---|---|---|
WebPortalRoleId |
Gets or sets the web portal role ID. |
integer |
None. |
CustomerId |
Gets or sets the customer ID. |
integer |
None. |
UserName |
Gets or set the username for logging in to the web portal. |
string |
None. |
NameFirst |
Gets or sets the first name |
string |
None. |
NameLast |
Gets or sets the last name |
string |
None. |
Gets or sets the email address |
string |
None. |
|
PhoneOffice |
Gets or sets the office phone number |
string |
None. |
PhoneMobile |
Gets or sets the mobile phone number |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "WebPortalRoleId": 1, "CustomerId": 2, "UserName": "sample string 3", "NameFirst": "sample string 4", "NameLast": "sample string 5", "Email": "sample string 6", "PhoneOffice": "sample string 7", "PhoneMobile": "sample string 8" }
application/xml, text/xml
Sample:
<UserCreate xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <WebPortalRoleId>1</WebPortalRoleId> <CustomerId>2</CustomerId> <UserName>sample string 3</UserName> <NameFirst>sample string 4</NameFirst> <NameLast>sample string 5</NameLast> <Email>sample string 6</Email> <PhoneOffice>sample string 7</PhoneOffice> <PhoneMobile>sample string 8</PhoneMobile> </UserCreate>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
System.Net.Http.HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | System.Version |
None. |
|
Content | System.Net.Http.HttpContent |
None. |
|
StatusCode | System.Net.HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | System.Net.Http.HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |