PUT api/Consumers/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

Consumer
NameDescriptionTypeAdditional information
ConsumerId

integer

None.

Name

string

None.

Sex

integer

None.

Age

integer

None.

MobileNumber

string

None.

Pin

string

None.

Address

string

None.

ProfileImage

string

None.

StatusTypeId

integer

None.

CreatedBy

integer

None.

CreatedDate

date

None.

UpdatedBy

integer

None.

UpdatedDate

date

None.

PinCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ConsumerId": 1,
  "Name": "sample string 2",
  "Sex": 1,
  "Age": 1,
  "MobileNumber": "sample string 3",
  "Pin": "sample string 4",
  "Address": "sample string 5",
  "ProfileImage": "sample string 6",
  "StatusTypeId": 1,
  "CreatedBy": 1,
  "CreatedDate": "2025-12-06T10:00:40.8094117+05:30",
  "UpdatedBy": 1,
  "UpdatedDate": "2025-12-06T10:00:40.8094117+05:30",
  "PinCode": "sample string 7"
}

application/xml, text/xml

Sample:
<Consumer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GNGroup.Models">
  <Address>sample string 5</Address>
  <Age>1</Age>
  <ConsumerId>1</ConsumerId>
  <CreatedBy>1</CreatedBy>
  <CreatedDate>2025-12-06T10:00:40.8094117+05:30</CreatedDate>
  <MobileNumber>sample string 3</MobileNumber>
  <Name>sample string 2</Name>
  <Pin>sample string 4</Pin>
  <PinCode>sample string 7</PinCode>
  <ProfileImage>sample string 6</ProfileImage>
  <Sex>1</Sex>
  <StatusTypeId>1</StatusTypeId>
  <UpdatedBy>1</UpdatedBy>
  <UpdatedDate>2025-12-06T10:00:40.8094117+05:30</UpdatedDate>
</Consumer>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.