POST api/Masters/SaveRankLevels

Request Information

URI Parameters

None.

Body Parameters

RankLevelModels
NameDescriptionTypeAdditional information
RL_Id

integer

None.

RL_name

string

None.

RL_Corps_Id_FK

integer

None.

RL_Rank_Id_FK

integer

None.

Ranks

RanksModels

None.

Corps

CorpsModels

None.

RL_SER_Id_FK

integer

None.

Is_Honarary_Rank

string

None.

ServiceType

string

None.

ServiceCategory

string

None.

RL_CA_Id_FK

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "RL_Id": 1,
  "RL_name": "sample string 2",
  "RL_Corps_Id_FK": 3,
  "RL_Rank_Id_FK": 4,
  "Ranks": {
    "Rank_Id": 1,
    "Rank_Name": "sample string 2"
  },
  "Corps": {
    "Corps_Id": 1,
    "Corps_Name": "sample string 2"
  },
  "RL_SER_Id_FK": 5,
  "Is_Honarary_Rank": "sample string 6",
  "ServiceType": "sample string 7",
  "ServiceCategory": "sample string 8",
  "RL_CA_Id_FK": 9
}

application/xml, text/xml

Sample:
<RankLevelModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SainikWebApi.Models">
  <Corps>
    <Corps_Id>1</Corps_Id>
    <Corps_Name>sample string 2</Corps_Name>
  </Corps>
  <Is_Honarary_Rank>sample string 6</Is_Honarary_Rank>
  <RL_CA_Id_FK>9</RL_CA_Id_FK>
  <RL_Corps_Id_FK>3</RL_Corps_Id_FK>
  <RL_Id>1</RL_Id>
  <RL_Rank_Id_FK>4</RL_Rank_Id_FK>
  <RL_SER_Id_FK>5</RL_SER_Id_FK>
  <RL_name>sample string 2</RL_name>
  <Ranks>
    <Rank_Id>1</Rank_Id>
    <Rank_Name>sample string 2</Rank_Name>
  </Ranks>
  <ServiceCategory>sample string 8</ServiceCategory>
  <ServiceType>sample string 7</ServiceType>
</RankLevelModels>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.