Aerovy Platform logo

Create a fleet

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

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

Loading code example
Loading code example

Authorizations

apiKeystringheaderrequired

API key passed in the header.

Body

The fleet to create.

fleetNamestringrequired

Human-readable name for the fleet.

Length: >= 1, <= 200
latitudenull | number | string<double>

Optional latitude of the fleet's nominal location.

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

Optional longitude of the fleet's nominal location.

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

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

preferredDisplayMetricsnull | array

Optional metric ids to surface by default for devices in this fleet.

Response

application/json

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