---
title: "POST /v1/projects/{projectOrProductUID}/fleets"
method: POST
path: "/v1/projects/{projectOrProductUID}/fleets"
tags: ["project"]
---

# POST /v1/projects/{projectOrProductUID}/fleets

`POST /v1/projects/{projectOrProductUID}/fleets`

Create Fleet

## Request body

- object
  - `connectivity_assurance` FleetConnectivityAssurance, nullable
    - `enabled` boolean, nullable — Whether Connectivity Assurance is enabled for this fleet
  - `label` string — The label, or name, for the Fleet.
  - `smart_rule` string — 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_enabled` boolean

## Response `201`

Successful operation

- Fleet
  - `connectivity_assurance` FleetConnectivityAssurance, nullable
    - `enabled` boolean, nullable — Whether Connectivity Assurance is enabled for this fleet
  - `created` string, date-time, required — RFC3339 timestamp in UTC
  - `environment_variables` object — The environment variables for this device that have been set using the Notehub API or UI.
  - `label` string, required — Fleet label
  - `smart_rule` string — 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_enabled` boolean
  - `uid` string, required — Fleet UID
  - `watchdog_mins` integer — A watchdog timer is used to generate an event every N minutes of inactivity. 0 means no watchdog

## Other responses

- `default` — The response body in case of an API error.

---

[API](https://skmtc.net/notefile/apis/notehub-api.md) · [All operations](https://skmtc.net/notefile/apis/notehub-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/notefile/notehub-api/versions/9c5b2b63a991/schema)
