POST api/MasterData/Location/Add

Request Information

URI Parameters

None.

Body Parameters

LocationMaster
NameDescriptionTypeAdditional information
LocationId

integer

None.

Name

string

None.

OfficeName

string

None.

Floor

string

None.

Room

string

None.

Request Formats

application/json, text/json

Sample:
{
  "LocationId": 1,
  "Name": "sample string 2",
  "OfficeName": "sample string 3",
  "Floor": "sample string 4",
  "Room": "sample string 5"
}

application/xml, text/xml

Sample:
<LocationMaster xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AMS.ERPC.API.DAL.Model.DataModel">
  <Floor>sample string 4</Floor>
  <LocationId>1</LocationId>
  <Name>sample string 2</Name>
  <OfficeName>sample string 3</OfficeName>
  <Room>sample string 5</Room>
</LocationMaster>

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

Response Information

Resource Description

None.