PUT api/PetitionDetails/updatePetitionDetailsBySP

Request Information

URI Parameters

None.

Body Parameters

PetitionModel
NameDescriptionTypeAdditional information
PetitionCode

string

None.

PetitionReceivedDate

date

None.

PetitionReceivedDatestring

string

None.

PetitionerName

string

None.

AccusedName

string

None.

PetitionerAddress1

string

None.

PetitionerAddress2

string

None.

PetitionerTalukCode

string

None.

PetitionerDistrictCode

string

None.

PetitionerPincode

string

None.

PetitionerGender

string

None.

PetitionerCasteCode

string

None.

PetitionerContactNumber

string

None.

PetitionerCasteDocumentPath

string

None.

PetitionOriginalPath

string

None.

PetitionerViolationType

string

None.

PetitionerViolationDescription

string

None.

PetitionerAssigedToUserId

string

None.

PetitionStatus

string

None.

UpdatedUserId

string

None.

UpdatedTime

string

None.

ActionTaken

string

None.

DistrictName

string

None.

TalukName

string

None.

CasteCategory

string

None.

CasteName

string

None.

LoggedInUsersRoleName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PetitionCode": "sample string 1",
  "PetitionReceivedDate": "2026-01-16T20:58:21.7002808+05:30",
  "PetitionReceivedDatestring": "sample string 3",
  "PetitionerName": "sample string 4",
  "AccusedName": "sample string 5",
  "PetitionerAddress1": "sample string 6",
  "PetitionerAddress2": "sample string 7",
  "PetitionerTalukCode": "sample string 8",
  "PetitionerDistrictCode": "sample string 9",
  "PetitionerPincode": "sample string 10",
  "PetitionerGender": "sample string 11",
  "PetitionerCasteCode": "sample string 12",
  "PetitionerContactNumber": "sample string 13",
  "PetitionerCasteDocumentPath": "sample string 14",
  "PetitionOriginalPath": "sample string 15",
  "PetitionerViolationType": "sample string 16",
  "PetitionerViolationDescription": "sample string 17",
  "PetitionerAssigedToUserId": "sample string 18",
  "PetitionStatus": "sample string 19",
  "UpdatedUserId": "sample string 20",
  "UpdatedTime": "sample string 21",
  "ActionTaken": "sample string 22",
  "DistrictName": "sample string 23",
  "TalukName": "sample string 24",
  "CasteCategory": "sample string 25",
  "CasteName": "sample string 26",
  "LoggedInUsersRoleName": "sample string 27"
}

application/xml, text/xml

Sample:
<PetitionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KHBWebApi.Models">
  <AccusedName>sample string 5</AccusedName>
  <ActionTaken>sample string 22</ActionTaken>
  <CasteCategory>sample string 25</CasteCategory>
  <CasteName>sample string 26</CasteName>
  <DistrictName>sample string 23</DistrictName>
  <LoggedInUsersRoleName>sample string 27</LoggedInUsersRoleName>
  <PetitionCode>sample string 1</PetitionCode>
  <PetitionOriginalPath>sample string 15</PetitionOriginalPath>
  <PetitionReceivedDate>2026-01-16T20:58:21.7002808+05:30</PetitionReceivedDate>
  <PetitionReceivedDatestring>sample string 3</PetitionReceivedDatestring>
  <PetitionStatus>sample string 19</PetitionStatus>
  <PetitionerAddress1>sample string 6</PetitionerAddress1>
  <PetitionerAddress2>sample string 7</PetitionerAddress2>
  <PetitionerAssigedToUserId>sample string 18</PetitionerAssigedToUserId>
  <PetitionerCasteCode>sample string 12</PetitionerCasteCode>
  <PetitionerCasteDocumentPath>sample string 14</PetitionerCasteDocumentPath>
  <PetitionerContactNumber>sample string 13</PetitionerContactNumber>
  <PetitionerDistrictCode>sample string 9</PetitionerDistrictCode>
  <PetitionerGender>sample string 11</PetitionerGender>
  <PetitionerName>sample string 4</PetitionerName>
  <PetitionerPincode>sample string 10</PetitionerPincode>
  <PetitionerTalukCode>sample string 8</PetitionerTalukCode>
  <PetitionerViolationDescription>sample string 17</PetitionerViolationDescription>
  <PetitionerViolationType>sample string 16</PetitionerViolationType>
  <TalukName>sample string 24</TalukName>
  <UpdatedTime>sample string 21</UpdatedTime>
  <UpdatedUserId>sample string 20</UpdatedUserId>
</PetitionModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.