POST api/State/saveState

Request Information

URI Parameters

None.

Body Parameters

StateModel
NameDescriptionTypeAdditional information
StateId

integer

None.

StateCode

string

None.

StateName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "StateId": 1,
  "StateCode": "sample string 2",
  "StateName": "sample string 3"
}

application/xml, text/xml

Sample:
<StateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERPTestAPI.Models">
  <StateCode>sample string 2</StateCode>
  <StateId>1</StateId>
  <StateName>sample string 3</StateName>
</StateModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

StateReturnModel
NameDescriptionTypeAdditional information
status

boolean

None.

msg

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status": true,
  "msg": "sample string 2"
}

application/xml, text/xml

Sample:
<StateReturnModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERPTestAPI.Models">
  <msg>sample string 2</msg>
  <status>true</status>
</StateReturnModel>