POST api/State

Request Information

URI Parameters

None.

Body Parameters

StateModels
NameDescriptionTypeAdditional information
ST_Id

integer

None.

ST_StateID

string

None.

ST_StateName

string

Required

Max length: 50

ST_UserId_FK

integer

None.

ST_TS

date

None.

ST_Inactive

string

None.

ST_TS_LastEdited

date

None.

ST_TS_Edited_Uid_FK

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ST_Id": 1,
  "ST_StateID": "sample string 2",
  "ST_StateName": "sample string 3",
  "ST_UserId_FK": 4,
  "ST_TS": "2019-12-10T13:09:25.9895589+05:30",
  "ST_Inactive": "sample string 6",
  "ST_TS_LastEdited": "2019-12-10T13:09:25.9895589+05:30",
  "ST_TS_Edited_Uid_FK": 8
}

application/xml, text/xml

Sample:
<StateModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <ST_Id>1</ST_Id>
  <ST_Inactive>sample string 6</ST_Inactive>
  <ST_StateID>sample string 2</ST_StateID>
  <ST_StateName>sample string 3</ST_StateName>
  <ST_TS>2019-12-10T13:09:25.9895589+05:30</ST_TS>
  <ST_TS_Edited_Uid_FK>8</ST_TS_Edited_Uid_FK>
  <ST_TS_LastEdited>2019-12-10T13:09:25.9895589+05:30</ST_TS_LastEdited>
  <ST_UserId_FK>4</ST_UserId_FK>
</StateModels>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.