POST api/District
Request Information
URI Parameters
None.
Body Parameters
DistrictModels| Name | Description | Type | Additional 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": "2025-10-25T13:05:03.366544+05:30",
"DI_Inactive": "A",
"DI_TS_LastEdited": "2025-10-25T13:05:03.366544+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>2025-10-25T13:05:03.366544+05:30</DI_TS>
<DI_TS_Edited_Uid_FK>8</DI_TS_Edited_Uid_FK>
<DI_TS_LastEdited>2025-10-25T13:05:03.366544+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:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.