POST api/Users/UpdateUser

Request Information

URI Parameters

None.

Body Parameters

InputUpdateUser
NameDescriptionTypeAdditional information
UserID

integer

Required

UserName

string

Matching regular expression pattern: ^[a-zA-Z0-9 ._-]{2,100}$

Max length: 100

CurrentPassword

string

None.

Email

string

None.

PhoneNumber

string

None.

NewPassword

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "UserName": "sample string 2",
  "CurrentPassword": "sample string 3",
  "Email": "sample string 4",
  "PhoneNumber": "sample string 5",
  "NewPassword": "sample string 6"
}

application/xml, text/xml

Sample:
<InputUpdateUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Musika.Models.API.Input">
  <CurrentPassword>sample string 3</CurrentPassword>
  <Email>sample string 4</Email>
  <NewPassword>sample string 6</NewPassword>
  <PhoneNumber>sample string 5</PhoneNumber>
  <UserID>1</UserID>
  <UserName>sample string 2</UserName>
</InputUpdateUser>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.