PUT api/Users/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

User
NameDescriptionTypeAdditional information
ID

integer

None.

userName

string

Required

String length: inclusive between 0 and 250

passwordHash

string

Required

String length: inclusive between 0 and 250

companyID

integer

None.

company

Company

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "userName": "sample string 1",
  "passwordHash": "sample string 2",
  "companyID": 3,
  "company": {
    "ID": 1,
    "vendorID": "sample string 1",
    "companyName": "sample string 2",
    "contractStatus": "sample string 3"
  }
}

application/xml, text/xml

Sample:
<User xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NMAUtilityAPI.Entity">
  <ID>1</ID>
  <company>
    <ID>1</ID>
    <companyName>sample string 2</companyName>
    <contractStatus>sample string 3</contractStatus>
    <vendorID>sample string 1</vendorID>
  </company>
  <companyID>3</companyID>
  <passwordHash>sample string 2</passwordHash>
  <userName>sample string 1</userName>
</User>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.