This documentation is no longer actively supported and may be out of date. Going forward, please visit and bookmark our new site (https://docs.phunware.com/) for up-to-date documentation.

Update a Building

 

This method is used to update an existing building.  Only draft buildings (i.e. buildings that belong to a draft campus) may be modified via this method.

Method

PUT

URL

http://map-api.phunware.com/v1.1/buildings/[id]

Headers

X-Auth (see Security)

Request Body

See Mapping API Architecture > PUT Methods & Partial Updates.

Parameter

Value

Description

campusId

integer

The identifier of the campus to which this building belongs.

name

string

The name of the building.

latitude

float

The latitude of this building in decimal degrees. Present for backwards compatibility. In version 1.1 of the API, the latitude should be contained within a location field, as indicated below.

longitude

float

The longitude of this building in decimal degrees. Present for backwards compatibility. In version 1.1 of the API, the longitude should be contained within a location field, as indicated below.

streetAddress

string

The street address of this building.

venueGuid

string

The identifier of the venue to which this building belongs.

location

object

An object containing the actual, physical location of the building. Possible values:

  • latitude (number): The latitude of this building in decimal degrees.
  • longitude (number): The longitude of this building in decimal degrees.
{
	"campusId": <integer>,
	"streetAddress": <string>
} 

Example Request

PUT the following request body to: http://map-api.phunware.com/v1.1/buildings/6891

{
	"campusId": 1987,
	"streetAddress": "123 Majora"
}

Response

A success response will return a 204 status code with no data in the body of the response. See Mapping API Response Handling for error payloads.

ON THIS PAGE