Skip to end of metadata
Go to start of metadata

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.

Create a Campus

 

This method is used to create a campus.

Method

POST

URL

http://map-api.phunware.com/v1.1/campuses

Headers

X-Auth (see Security)

Request Body

Required parameters are underlined.

Parameter

Value

Description

name

string

The name of the campus.

venueGuid

string

The identifier of the venue that the campus belongs to. Must be a draft venue.

{
    "name": <string>,
    "venueGuid": <string>
} 

Example Request

POST the following request body to: http://map-api.phunware.com/v1.1/campuses

{
    "name": "Hyrule Castle",
    "venueGuid": null
} 

Response

A successful response will have a 200 status code and a body containing the newly created campus' ID:

{
    "data": 
	{
        "id": <integer>
    }
}

See Mapping API Response Handling for error payloads.

Example Response

Example body of successful response:

{
    "data": 
	{
        "id": 1986
    }
}

ON THIS PAGE

  • No labels