PUT api/Account/Update/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

UpdateBindingModel
NameDescriptionTypeAdditional information
Email

string

Required

Password

string

Data type: Password

String length: inclusive between 6 and 100

ConfirmPassword

string

Data type: Password

Role

string

Required

OldEmail

string

Required

DisplayName

string

Required

Request Formats

application/json, text/json

Sample:
{
  "Email": "sample string 1",
  "Password": "sample string 2",
  "ConfirmPassword": "sample string 3",
  "Role": "sample string 4",
  "OldEmail": "sample string 5",
  "DisplayName": "sample string 6"
}

text/html

Sample:
{"Email":"sample string 1","Password":"sample string 2","ConfirmPassword":"sample string 3","Role":"sample string 4","OldEmail":"sample string 5","DisplayName":"sample string 6"}

application/xml, text/xml

Sample:
<UpdateBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FleetAPI.Models">
  <ConfirmPassword>sample string 3</ConfirmPassword>
  <DisplayName>sample string 6</DisplayName>
  <Email>sample string 1</Email>
  <OldEmail>sample string 5</OldEmail>
  <Password>sample string 2</Password>
  <Role>sample string 4</Role>
</UpdateBindingModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UpdateBindingModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.