Skip to main content
POST
Assign a meter to a space
The meter and the space must be in the building. The body must hold the same buildingId as the path. Sending the same assignment again is not an error.
With exclusive set to true, KODE removes the meter’s existing space assignments before it adds the new one. Leave exclusive out unless you mean to replace them.
The response is 204 with no body. To remove an assignment, use Remove a meter assignment.

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.

Path Parameters

buildingId
string
required

Building identifier from List buildings.

Body

application/json
buildingId
string
required

Identifier of the building. Use the same building as in the path. Required.

Pattern: \S
meterId
string
required

Identifier of the meter. The meter must be in this building. Required.

Pattern: \S
spaceId
string
required

Identifier of the space to assign the meter to. The space must be in this building. Required.

Pattern: \S
exclusive
boolean

Set to true to remove the meter's existing space assignments before the new one is added. The default is false.

Response

The meter was assigned. The response has no body.