Aerovy Platform logo

Create a site

POSThttps://spectra.api.aerovy.com/v2/sites

Creates a new site. Requires an API key with the write action.

Loading code example
Loading code example

Authorizations

apiKeystringheaderrequired

API key passed in the header.

Body

The site to create.

siteNamestringrequired

Human-readable name for the site.

Length: >= 1, <= 200
longitudenumber | string<double>required

Longitude of the site's location.

Required range: x >= -180, x <= 180
Pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$
latitudenumber | string<double>required

Latitude of the site's location.

Required range: x >= -90, x <= 90
Pattern: ^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$
addressstringrequired

Street address of the site.

Length: >= 0, <= 500
attributesobject

Arbitrary user-defined key/value metadata for the site.

preferredDisplayMetricsnull | array

Optional metric ids to surface by default for devices at this site.

Response

application/json

Created; the body is the new site id and the Location header points to it.