v62

latestOpenAPI 3.0.3raw.githubusercontent.com2026-07-31136116265.6 KB
project

Create Fleet

post/v1/projects/{projectOrProductUID}/fleets

Request body

labelstring

The label, or name, for the Fleet.

smart_rulestring

JSONata expression that will be evaluated to determine device membership into this fleet, if the expression evaluates to a 1, the device will be included, if it evaluates to -1 it will be removed, and if it evaluates to 0 or errors it will be left unchanged.

smart_rule_enabledboolean

Example request

{
  "connectivity_assurance": {
    "enabled": true
  }
}

Response

Successful operation

createdstring date-time required

RFC3339 timestamp in UTC

environment_variablesobject

The environment variables for this device that have been set using the Notehub API or UI.

labelstring required

Fleet label

smart_rulestring

JSONata expression that will be evaluated to determine device membership into this fleet, if the expression evaluates to a 1, the device will be included, if it evaluates to -1 it will be removed, and if it evaluates to 0 or errors it will be left unchanged.

smart_rule_enabledboolean
uidstring required

Fleet UID

watchdog_minsinteger

A watchdog timer is used to generate an event every N minutes of inactivity. 0 means no watchdog

Example response

{
  "connectivity_assurance": {
    "enabled": true
  }
}