PUT api/Users/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

User
NameDescriptionTypeAdditional information
UserId

integer

None.

FirstName

string

Required

Max length: 50

LastName

string

Required

Max length: 50

Email

string

Required

Data type: EmailAddress

Max length: 100

Telephone

string

Data type: PhoneNumber

Max length: 20

ImagePath

string

None.

UserTypeId

integer

None.

ImageArray

Collection of byte

None.

Password

string

None.

ImageFullPath

string

None.

FullName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "Email": "sample string 4",
  "Telephone": "sample string 5",
  "ImagePath": "sample string 6",
  "UserTypeId": 7,
  "ImageArray": "QEA=",
  "Password": "sample string 8",
  "ImageFullPath": "http://webservices.metropol.gov.co/simapi2/ample string 6",
  "FullName": "sample string 2 sample string 3"
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[SIMDomain.User, SIMDomain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[SIMDomain.User, SIMDomain, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

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 'User'.

Response Information

Resource Description

None.