PUT api/District/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

DistrictModels
NameDescriptionTypeAdditional information
DI_Id

integer

None.

DI_DistrictId

string

None.

StateSpeedSearch

StateSpeedSearchModels

Required

DI_District

string

Required

Max length: -1

DI_UserId_FK

integer

None.

DI_TS

date

None.

DI_Inactive

character

None.

DI_TS_LastEdited

date

None.

DI_TS_Edited_Uid_FK

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "DI_Id": 1,
  "DI_DistrictId": "sample string 2",
  "StateSpeedSearch": {
    "ST_Id": 1,
    "ST_StateID": "sample string 2",
    "ST_StateName": "sample string 3"
  },
  "DI_District": "sample string 3",
  "DI_UserId_FK": 4,
  "DI_TS": "2024-04-19T17:17:59.9696429+05:30",
  "DI_Inactive": "A",
  "DI_TS_LastEdited": "2024-04-19T17:17:59.97012+05:30",
  "DI_TS_Edited_Uid_FK": 8
}

application/xml, text/xml

Sample:
<DistrictModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <DI_District>sample string 3</DI_District>
  <DI_DistrictId>sample string 2</DI_DistrictId>
  <DI_Id>1</DI_Id>
  <DI_Inactive>65</DI_Inactive>
  <DI_TS>2024-04-19T17:17:59.9696429+05:30</DI_TS>
  <DI_TS_Edited_Uid_FK>8</DI_TS_Edited_Uid_FK>
  <DI_TS_LastEdited>2024-04-19T17:17:59.97012+05:30</DI_TS_LastEdited>
  <DI_UserId_FK>4</DI_UserId_FK>
  <StateSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
    <d2p1:ST_Id>1</d2p1:ST_Id>
    <d2p1:ST_StateID>sample string 2</d2p1:ST_StateID>
    <d2p1:ST_StateName>sample string 3</d2p1:ST_StateName>
  </StateSpeedSearch>
</DistrictModels>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.