Create a fleet
POST
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.
fleetNamestringrequiredHuman-readable name for the fleet.
Length:
>= 1, <= 200latitudenull | number | string<double>Optional latitude of the fleet's nominal location.
Required range:
x >= -90, x <= 90Pattern:
^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$longitudenull | number | string<double>Optional longitude of the fleet's nominal location.
Required range:
x >= -180, x <= 180Pattern:
^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$attributesobjectArbitrary user-defined key/value metadata for the fleet.
preferredDisplayMetricsnull | arrayOptional 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.