POST api/User/UpdateUser

Request Information

URI Parameters

None.

Body Parameters

UsersModel
NameDescriptionTypeAdditional information
UserType

integer

None.

UsersID

integer

None.

FirstName

string

None.

LastName

string

None.

MobileNo

string

None.

EmailAddress

string

None.

ProfilePicImagePath

string

None.

IsApproved

boolean

None.

Rewards

decimal number

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

IsPhoneVarified

boolean

None.

NotApprovedReason

string

None.

IsBlocked

boolean

None.

Rating

decimal number

None.

RatingCount

integer

None.

GSTNo

string

None.

CompanyName

string

None.

Password

string

None.

UserName

string

None.

UsersType

UsersTypeEnum

None.

UserDeviceType

DeviceTypeEnum

None.

IsCollector

boolean

None.

ShopName

string

None.

ShopArea

integer

None.

Employees

integer

None.

Vehicles

integer

None.

VehiclesCapacity

string

None.

PanCard

string

None.

AdharCard

string

None.

ImageURL

string

None.

WeighingScaleImagePath

string

None.

PanCardImagePath

string

None.

AdharCardImagePath

string

None.

CollectorDetailID

integer

None.

ImageType

integer

None.

WasteCredit

decimal number

None.

UserToken

string

None.

RewardsEarned

integer

None.

CreatedDate

string

None.

UpdatedDate

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserType": 1,
  "UsersID": 2,
  "FirstName": "sample string 3",
  "LastName": "sample string 4",
  "MobileNo": "sample string 5",
  "EmailAddress": "sample string 6",
  "ProfilePicImagePath": "sample string 7",
  "IsApproved": true,
  "Rewards": 9.0,
  "Latitude": 10.0,
  "Longitude": 11.0,
  "IsPhoneVarified": true,
  "NotApprovedReason": "sample string 13",
  "IsBlocked": true,
  "Rating": 15.0,
  "RatingCount": 16,
  "GSTNo": "sample string 17",
  "CompanyName": "sample string 18",
  "Password": "sample string 19",
  "UserName": "sample string 20",
  "UsersType": 0,
  "UserDeviceType": 1,
  "IsCollector": true,
  "ShopName": "sample string 22",
  "ShopArea": 1,
  "Employees": 1,
  "Vehicles": 1,
  "VehiclesCapacity": "sample string 23",
  "PanCard": "sample string 24",
  "AdharCard": "sample string 25",
  "ImageURL": "sample string 26",
  "WeighingScaleImagePath": "sample string 27",
  "PanCardImagePath": "sample string 28",
  "AdharCardImagePath": "sample string 29",
  "CollectorDetailID": 30,
  "ImageType": 1,
  "WasteCredit": 31.0,
  "UserToken": "sample string 32",
  "RewardsEarned": 33,
  "CreatedDate": "sample string 34",
  "UpdatedDate": "sample string 35"
}

application/xml, text/xml

Sample:
<UsersModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RecycleGreenAPILibrary.BusinessModel">
  <CreatedDate>sample string 34</CreatedDate>
  <UpdatedDate>sample string 35</UpdatedDate>
  <AdharCard>sample string 25</AdharCard>
  <AdharCardImagePath>sample string 29</AdharCardImagePath>
  <CollectorDetailID>30</CollectorDetailID>
  <CompanyName>sample string 18</CompanyName>
  <EmailAddress>sample string 6</EmailAddress>
  <Employees>1</Employees>
  <FirstName>sample string 3</FirstName>
  <GSTNo>sample string 17</GSTNo>
  <ImageType>1</ImageType>
  <ImageURL>sample string 26</ImageURL>
  <IsApproved>true</IsApproved>
  <IsBlocked>true</IsBlocked>
  <IsCollector>true</IsCollector>
  <IsPhoneVarified>true</IsPhoneVarified>
  <LastName>sample string 4</LastName>
  <Latitude>10</Latitude>
  <Longitude>11</Longitude>
  <MobileNo>sample string 5</MobileNo>
  <NotApprovedReason>sample string 13</NotApprovedReason>
  <PanCard>sample string 24</PanCard>
  <PanCardImagePath>sample string 28</PanCardImagePath>
  <Password>sample string 19</Password>
  <ProfilePicImagePath>sample string 7</ProfilePicImagePath>
  <Rating>15</Rating>
  <RatingCount>16</RatingCount>
  <Rewards>9</Rewards>
  <RewardsEarned>33</RewardsEarned>
  <ShopArea>1</ShopArea>
  <ShopName>sample string 22</ShopName>
  <UserDeviceType>Android</UserDeviceType>
  <UserName>sample string 20</UserName>
  <UserToken>sample string 32</UserToken>
  <UserType>1</UserType>
  <UsersID>2</UsersID>
  <UsersType>User</UsersType>
  <Vehicles>1</Vehicles>
  <VehiclesCapacity>sample string 23</VehiclesCapacity>
  <WasteCredit>31</WasteCredit>
  <WeighingScaleImagePath>sample string 27</WeighingScaleImagePath>
</UsersModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.