POST api/admin/masters/AddOrEditDistrict
Request Information
URI Parameters
None.
Body Parameters
DistrictSaveDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| DistrictID | integer |
None. |
|
| DistrictName | string |
Required |
|
| StateID | integer |
Range: inclusive between 1 and 2147483647 |
|
| UserName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"DistrictID": 1,
"DistrictName": "sample string 2",
"StateID": 3,
"UserName": "sample string 4"
}
application/xml, text/xml
Sample:
<DistrictSaveDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Married.Entities.customsmodels"> <DistrictID>1</DistrictID> <DistrictName>sample string 2</DistrictName> <StateID>3</StateID> <UserName>sample string 4</UserName> </DistrictSaveDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResponseOfString| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Data | string |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Data": "sample string 2",
"Message": "sample string 3"
}
application/xml, text/xml
Sample:
<ApiResponseOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Married.Entities.models"> <Data>sample string 2</Data> <Message>sample string 3</Message> <Success>true</Success> </ApiResponseOfstring>