POST api/Roles/Create

Request Information

URI Parameters

None.

Body Parameters

RolesModels
NameDescriptionTypeAdditional information
OfficeId

integer

None.

OfficeName

string

None.

Tr_Pro_Id

integer

None.

C_Id

integer

None.

Tr_Pro_Title

string

None.

OfficeType

string

None.

DistrictId

integer

None.

DistrictName

string

None.

RoleId

string

None.

RoleName

string

Required

Max length: 256

Inactive

string

None.

Request Formats

application/json, text/json

Sample:
{
  "OfficeId": 1,
  "OfficeName": "sample string 2",
  "Tr_Pro_Id": 3,
  "C_Id": 4,
  "Tr_Pro_Title": "sample string 5",
  "OfficeType": "sample string 6",
  "DistrictId": 7,
  "DistrictName": "sample string 8",
  "RoleId": "sample string 9",
  "RoleName": "sample string 10",
  "Inactive": "sample string 11"
}

application/xml, text/xml

Sample:
<RolesModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KHBWebApi.Models">
  <C_Id>4</C_Id>
  <DistrictId>7</DistrictId>
  <DistrictName>sample string 8</DistrictName>
  <Inactive>sample string 11</Inactive>
  <OfficeId>1</OfficeId>
  <OfficeName>sample string 2</OfficeName>
  <OfficeType>sample string 6</OfficeType>
  <RoleId>sample string 9</RoleId>
  <RoleName>sample string 10</RoleName>
  <Tr_Pro_Id>3</Tr_Pro_Id>
  <Tr_Pro_Title>sample string 5</Tr_Pro_Title>
</RolesModels>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.