POST api/Account/ChangeUserName
Changes user's username.
Request Information
URI Parameters
None.
Body Parameters
ChangeUserNamePostName | Description | Type | Additional information |
---|---|---|---|
UserProviderKey |
User id |
string |
None. |
NewUserName |
New username |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "UserProviderKey": "34609646-d9ca-4ec6-a79b-875dde4de83a", "NewUserName": "john.doe" }
application/xml, text/xml
Sample:
<ChangeUserNamePost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts"> <NewUserName>john.doe</NewUserName> <UserProviderKey>34609646-d9ca-4ec6-a79b-875dde4de83a</UserProviderKey> </ChangeUserNamePost>
Response Information
Resource Description
HttpStatusCode 200 OK or 400 BadRequest with Message.
IHttpActionResultNone.