Skip to main content
POST

Authorizations

Authorization
string
header
required

Authenticate with the bearer_token obtained from the authentication endpoint.

Body

application/json

Group payload.

Group create payload. Provide exactly one of device_ids or filter.

name
string
required

Group name, for your own reference.

Example:

"Bristol batteries"

device_ids
string[]

Explicit member devices. Provide either this or filter, not both.

Example:
filter
object

Dynamic membership rule. Provide either this or device_ids, not both.

Response

Group response.

A named collection of devices for bulk dispatch and aggregated reads. Membership is either an explicit device list or a filter that Flatpeak re-evaluates continuously. Read the members with list all group devices.

id
string
required

Flatpeak Group ID.

Example:

"grp_2f6a9c1d8e3b5a7c4d0e9f1a"

object
enum<string>
required

Object type, group.

Available options:
group
Example:

"group"

live_mode
boolean
required

true for live data, false for test data.

Example:

true

name
string
required

Group name, for your own reference.

Example:

"Bristol batteries"

filter
object | null
required

Dynamic membership rule. null for a group made from an explicit device list.

device_count
integer
required
read-only

Current member count.

Example:

214

time_created
string<date-time>
required

Time when the object was created, in UTC.

Example:

"2026-08-12T09:30:00Z"

account_id
string
required

Flatpeak Account ID of the operator that owns the group.

Example:

"acc_649d465ede6a785d2fa5f905"