POST api/User
Updates the currently logged-in user's profiles with the data in the specified model
Request Information
URI Parameters
None.
Body Parameters
The object model containing the properties of the user to update.
Trifolia.Web.Models.User.UserModelName | Description | Type | Additional information |
---|---|---|---|
Roles | Collection of integer |
None. |
|
Groups | Collection of integer |
None. |
|
Id | integer |
None. |
|
string |
None. |
||
FirstName | string |
None. |
|
LastName | string |
None. |
|
UserName | string |
None. |
|
Phone | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Roles": [ 1, 2 ], "Groups": [ 1, 2 ], "Id": 1, "Email": "sample string 1", "FirstName": "sample string 2", "LastName": "sample string 3", "UserName": "sample string 4", "Phone": "sample string 5" }
application/xml, text/xml
Sample:
<UserModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Trifolia.Web.Models.User"> <Email>sample string 1</Email> <FirstName>sample string 2</FirstName> <Groups xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </Groups> <Id>1</Id> <LastName>sample string 3</LastName> <Phone>sample string 5</Phone> <Roles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </Roles> <UserName>sample string 4</UserName> </UserModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.