POST Api/users/Update

Request Information

URI Parameters

None.

Body Parameters

UserUpdateBindingModel
NameDescriptionTypeAdditional information
ID

globally unique identifier

Required

FirstName

string

Required

Matching regular expression pattern: ^[a-zA-Z]*$

Max length: 70

Min length: 1

LastName

string

Required

Matching regular expression pattern: ^[a-zA-Z]*$

Max length: 70

Min length: 1

Picture

integer

Required

Range: inclusive between 0 and 16

RollNumber

string

Matching regular expression pattern: ^[a-zA-Z0-9 ]*$

Request Formats

application/json, text/json

Sample:
{
  "ID": "6b632d53-ec77-4a4d-a117-ae34c9b9ff71",
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "Picture": 4,
  "RollNumber": "sample string 5"
}

application/xml, text/xml

Sample:
<UserUpdateBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GameAPIV3.Models">
  <FirstName>sample string 2</FirstName>
  <LastName>sample string 3</LastName>
  <Picture>4</Picture>
  <RollNumber>sample string 5</RollNumber>
  <ID>6b632d53-ec77-4a4d-a117-ae34c9b9ff71</ID>
</UserUpdateBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.