Skip to main content
POST
Discover mass write point groups
A group holds writable points of the same kind, connector type, field, and unit or enum values. Use the groups to build the writes of a plan for Validate or apply a mass write. The body holds a query. Only buildingIds is required. Every other member is a filter. A point must match every filter you send. A filter you leave out, or send as an empty list, does not restrict the result.
KODE API ignores a key it does not know, so a misspelled filter does not narrow the query. It widens it. Check points in the response before you write.
Only writable points are grouped. A query can match at most 30,000 points. A building outside your account returns 400, the same as a building that does not exist.
scope is PORTFOLIO when matched points are in more than one building. buildings and points count across all pages. KODE API ignores q, asc, and dsc. Groups come in a fixed order.

Authorizations

Authorization
string
header
required

Paste an access token from Create an access token. Tokens expire, so request a new one if you receive 401.

Query Parameters

limit
integer<int32>
default:50

Number of items per page, from 1 to 200. The default is 50.

Required range: 1 <= x <= 200
page
integer<int32>
default:1

Page number to return. The first page is 1.

Required range: x >= 1

Body

application/json
query
object
required

Selects the points to group.

Response

A page of point groups.

data
object[]
page
integer<int32>
limit
integer<int32>
pageCount
integer<int32>
itemCount
integer<int32>
scope
string

PORTFOLIO when the matched points are in more than one building. Otherwise BUILDING.

buildings
integer<int32>

Number of buildings with matched points.

Example:

1

points
integer<int64>

Number of points matched across all pages.

Example:

300