POST api/user/Building/Upload

Request Information

URI Parameters

None.

Body Parameters

Building
NameDescriptionTypeAdditional information
BuildingID

integer

None.

Name

string

None.

BuildingType

string

None.

Managers

Collection of BuildingManager

None.

Address

string

None.

City

string

None.

State

string

None.

Zip

string

None.

Longitude

decimal number

None.

Latitude

decimal number

None.

PhotoBlobs

Collection of PhotoBlob

None.

Photos

Collection of Photo

None.

FavoritePhotoID

integer

None.

Units

Collection of Unit

None.

Amenities

Collection of string

None.

Accessibilities

Collection of string

None.

MiscAmenities

string

None.

MiscAccessibilities

string

None.

ResidentPortal

string

None.

Documents

Collection of Document

None.

Request Formats

application/json, text/json

Sample:
{
  "BuildingID": 1,
  "Name": "sample string 2",
  "BuildingType": "sample string 3",
  "Managers": [
    {
      "BuildingManagerID": 1,
      "FullName": "sample string 1",
      "Email": "sample string 2",
      "Phone": "sample string 3"
    },
    {
      "BuildingManagerID": 1,
      "FullName": "sample string 1",
      "Email": "sample string 2",
      "Phone": "sample string 3"
    }
  ],
  "Address": "sample string 4",
  "City": "sample string 5",
  "State": "sample string 6",
  "Zip": "sample string 7",
  "Longitude": 1.0,
  "Latitude": 1.0,
  "PhotoBlobs": [
    {
      "IsFavorite": true,
      "show": true,
      "src": "sample string 2",
      "id": "sample string 3",
      "fileName": "sample string 4",
      "fileSize": "sample string 5"
    },
    {
      "IsFavorite": true,
      "show": true,
      "src": "sample string 2",
      "id": "sample string 3",
      "fileName": "sample string 4",
      "fileSize": "sample string 5"
    }
  ],
  "Photos": [
    {
      "PhotoID": 1,
      "URL": "sample string 2",
      "OriginalID": "sample string 3",
      "IsFavorite": true
    },
    {
      "PhotoID": 1,
      "URL": "sample string 2",
      "OriginalID": "sample string 3",
      "IsFavorite": true
    }
  ],
  "FavoritePhotoID": 1,
  "Units": null,
  "Amenities": [
    "sample string 1",
    "sample string 2"
  ],
  "Accessibilities": [
    "sample string 1",
    "sample string 2"
  ],
  "MiscAmenities": "sample string 8",
  "MiscAccessibilities": "sample string 9",
  "ResidentPortal": "sample string 10",
  "Documents": [
    {
      "BuildingDocumentID": 1,
      "URL": "sample string 2",
      "OriginalFileName": "sample string 3",
      "Description": "sample string 4"
    },
    {
      "BuildingDocumentID": 1,
      "URL": "sample string 2",
      "OriginalFileName": "sample string 3",
      "Description": "sample string 4"
    }
  ]
}

application/xml, text/xml

Sample:
<Building xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WisspNetApi.Models">
  <Accessibilities xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Accessibilities>
  <Address>sample string 4</Address>
  <Amenities xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Amenities>
  <BuildingID>1</BuildingID>
  <BuildingType>sample string 3</BuildingType>
  <City>sample string 5</City>
  <Documents>
    <Document>
      <BuildingDocumentID>1</BuildingDocumentID>
      <Description>sample string 4</Description>
      <OriginalFileName>sample string 3</OriginalFileName>
      <URL>sample string 2</URL>
    </Document>
    <Document>
      <BuildingDocumentID>1</BuildingDocumentID>
      <Description>sample string 4</Description>
      <OriginalFileName>sample string 3</OriginalFileName>
      <URL>sample string 2</URL>
    </Document>
  </Documents>
  <FavoritePhotoID>1</FavoritePhotoID>
  <Latitude>1</Latitude>
  <Longitude>1</Longitude>
  <Managers>
    <BuildingManager>
      <BuildingManagerID>1</BuildingManagerID>
      <Email>sample string 2</Email>
      <FullName>sample string 1</FullName>
      <Phone>sample string 3</Phone>
    </BuildingManager>
    <BuildingManager>
      <BuildingManagerID>1</BuildingManagerID>
      <Email>sample string 2</Email>
      <FullName>sample string 1</FullName>
      <Phone>sample string 3</Phone>
    </BuildingManager>
  </Managers>
  <MiscAccessibilities>sample string 9</MiscAccessibilities>
  <MiscAmenities>sample string 8</MiscAmenities>
  <Name>sample string 2</Name>
  <PhotoBlobs>
    <PhotoBlob>
      <fileName>sample string 4</fileName>
      <fileSize>sample string 5</fileSize>
      <id>sample string 3</id>
      <src>sample string 2</src>
      <IsFavorite>true</IsFavorite>
      <show>true</show>
    </PhotoBlob>
    <PhotoBlob>
      <fileName>sample string 4</fileName>
      <fileSize>sample string 5</fileSize>
      <id>sample string 3</id>
      <src>sample string 2</src>
      <IsFavorite>true</IsFavorite>
      <show>true</show>
    </PhotoBlob>
  </PhotoBlobs>
  <Photos>
    <Photo>
      <IsFavorite>true</IsFavorite>
      <OriginalID>sample string 3</OriginalID>
      <PhotoID>1</PhotoID>
      <URL>sample string 2</URL>
    </Photo>
    <Photo>
      <IsFavorite>true</IsFavorite>
      <OriginalID>sample string 3</OriginalID>
      <PhotoID>1</PhotoID>
      <URL>sample string 2</URL>
    </Photo>
  </Photos>
  <ResidentPortal>sample string 10</ResidentPortal>
  <State>sample string 6</State>
  <Units i:nil="true" />
  <Zip>sample string 7</Zip>
</Building>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.