POST api/user/updateuser
Update a user
Request Information
URI Parameters
None.
Body Parameters
Update the user by sending in at least userid, username and status.
Unit4UpdateUserName | Description | Type | Additional information |
---|---|---|---|
C |
AddressCountryCode (User) |
string |
None. |
SamAccountName | string |
Required |
|
Manager | string |
None. |
|
DisplayName | string |
None. |
|
Status | Unit4UserStatus |
None. |
|
UserPrincipalName | string |
None. |
|
Mobile | string |
None. |
|
PostalCode | string |
None. |
|
City | string |
None. |
|
GivenName | string |
None. |
|
SurName | string |
None. |
|
MiddleName | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "C": "sample string 1", "SamAccountName": "sample string 2", "Manager": "sample string 3", "DisplayName": "sample string 4", "Status": 0, "UserPrincipalName": "sample string 5", "Mobile": "sample string 6", "PostalCode": "sample string 7", "City": "sample string 8", "GivenName": "sample string 9", "SurName": "sample string 10", "MiddleName": "sample string 11" }
application/xml, text/xml
Sample:
<Unit4UpdateUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Unit4Helper.Models"> <C>sample string 1</C> <City>sample string 8</City> <DisplayName>sample string 4</DisplayName> <GivenName>sample string 9</GivenName> <Manager>sample string 3</Manager> <MiddleName>sample string 11</MiddleName> <Mobile>sample string 6</Mobile> <PostalCode>sample string 7</PostalCode> <SamAccountName>sample string 2</SamAccountName> <Status>Active</Status> <SurName>sample string 10</SurName> <UserPrincipalName>sample string 5</UserPrincipalName> </Unit4UpdateUser>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |