POST api/AdmStateMaster/AddAdmStateMaster

Request Information

URI Parameters

None.

Body Parameters

AdmStateMaster
NameDescriptionTypeAdditional information
AdmStateMasterId

integer

None.

admCountryMaster

AdmCountryMaster

None.

AdmCountryMasterId

integer

None.

StateDescription

string

None.

Status

string

None.

CreatedDate

string

None.

CreatedBy

string

None.

UpdatedDate

string

None.

UpdatedBy

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AdmStateMasterId": 1,
  "admCountryMaster": {
    "AdmCountryMasterId": 1,
    "CountryDescription": "sample string 2",
    "Status": "sample string 3",
    "CreatedDate": "sample string 4",
    "CreatedBy": "sample string 5",
    "UpdatedDate": "sample string 6",
    "UpdatedBy": "sample string 7"
  },
  "AdmCountryMasterId": 2,
  "StateDescription": "sample string 3",
  "Status": "sample string 4",
  "CreatedDate": "sample string 5",
  "CreatedBy": "sample string 6",
  "UpdatedDate": "sample string 7",
  "UpdatedBy": "sample string 8"
}

application/xml, text/xml

Sample:
<AdmStateMaster xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SocialHiveAPI.Models">
  <AdmCountryMasterId>2</AdmCountryMasterId>
  <AdmStateMasterId>1</AdmStateMasterId>
  <CreatedBy>sample string 6</CreatedBy>
  <CreatedDate>sample string 5</CreatedDate>
  <StateDescription>sample string 3</StateDescription>
  <Status>sample string 4</Status>
  <UpdatedBy>sample string 8</UpdatedBy>
  <UpdatedDate>sample string 7</UpdatedDate>
  <admCountryMaster>
    <AdmCountryMasterId>1</AdmCountryMasterId>
    <CountryDescription>sample string 2</CountryDescription>
    <CreatedBy>sample string 5</CreatedBy>
    <CreatedDate>sample string 4</CreatedDate>
    <Status>sample string 3</Status>
    <UpdatedBy>sample string 7</UpdatedBy>
    <UpdatedDate>sample string 6</UpdatedDate>
  </admCountryMaster>
</AdmStateMaster>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.