Skip to Content
Meters

Set Switch State

Accès

Membre de l’organisation avec cette autorisation :

  • meters:control

Une clé API avec des scopes doit aussi avoir l’autorisation dans ses scopes.

PUT
/orgs/{organizationId}/meters/{meterId}/switch

Sets the switch state of a meter.

Authorization

ApiKeyAuth
headerx-api-key<token>

API key for authentication

Path Parameters

organizationId*string

The ID or slug of the organization

meterId*string

Request Body

application/json
  1. body
state*boolean

Response Body

OK

application/json
  1. response
Example Request
curl -X PUT 'https://api.tillor.eu/orgs//meters/string/switch' \  -H 'Content-Type: application/json' \  -d '{  "state": true}'
Example Response
null