POST api/AssetBuilding/Save

Request Information

URI Parameters

None.

Body Parameters

AssetBuildingSaveVM
NameDescriptionTypeAdditional information
BookId

integer

Required

BuildingName

string

Required

String length: inclusive between 0 and 100

Code

string

String length: inclusive between 0 and 10

Asset

AssetLookupVM

None.

Address1

string

String length: inclusive between 0 and 200

Address2

string

String length: inclusive between 0 and 200

AddressPincode

string

String length: inclusive between 0 and 50

AddressPlace

string

String length: inclusive between 0 and 100

AddressLandMark

string

String length: inclusive between 0 and 200

PostOffice

PlaceLookup

None.

District

PlaceLookup

None.

State

PlaceLookup

None.

Country

PlaceLookup

None.

TotalArea

decimal number

None.

Status

string

Required

Matching regular expression pattern: A|I

CreateUser

integer

Required

CreateIp

string

Required

String length: inclusive between 0 and 20

Request Formats

application/json, text/json

Sample:
{
  "BookId": 1,
  "BuildingName": "sample string 2",
  "Code": "sample string 3",
  "Asset": {
    "AssetId": 1,
    "AssetName": "sample string 2"
  },
  "Address1": "sample string 4",
  "Address2": "sample string 5",
  "AddressPincode": "sample string 6",
  "AddressPlace": "sample string 7",
  "AddressLandMark": "sample string 8",
  "PostOffice": {
    "PlaceId": 1,
    "PlaceName": "sample string 2"
  },
  "District": {
    "PlaceId": 1,
    "PlaceName": "sample string 2"
  },
  "State": {
    "PlaceId": 1,
    "PlaceName": "sample string 2"
  },
  "Country": {
    "PlaceId": 1,
    "PlaceName": "sample string 2"
  },
  "TotalArea": 9.0,
  "Status": "sample string 10",
  "CreateUser": 11,
  "CreateIp": "sample string 12"
}

application/xml, text/xml

Sample:
<AssetBuildingSaveVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <Address1>sample string 4</Address1>
  <Address2>sample string 5</Address2>
  <AddressLandMark>sample string 8</AddressLandMark>
  <AddressPincode>sample string 6</AddressPincode>
  <AddressPlace>sample string 7</AddressPlace>
  <Asset>
    <AssetId>1</AssetId>
    <AssetName>sample string 2</AssetName>
  </Asset>
  <BookId>1</BookId>
  <BuildingName>sample string 2</BuildingName>
  <Code>sample string 3</Code>
  <Country>
    <PlaceId>1</PlaceId>
    <PlaceName>sample string 2</PlaceName>
  </Country>
  <CreateIp>sample string 12</CreateIp>
  <CreateUser>11</CreateUser>
  <District>
    <PlaceId>1</PlaceId>
    <PlaceName>sample string 2</PlaceName>
  </District>
  <PostOffice>
    <PlaceId>1</PlaceId>
    <PlaceName>sample string 2</PlaceName>
  </PostOffice>
  <State>
    <PlaceId>1</PlaceId>
    <PlaceName>sample string 2</PlaceName>
  </State>
  <Status>sample string 10</Status>
  <TotalArea>9</TotalArea>
</AssetBuildingSaveVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.