.. _SystemIntegration_HandlingCounterDisplay: ############## CounterDisplay ############## Update Counters *************** Updates one or more counters on the counterdisplay. **URL parameters** * **hostIp**: ip address of the API host. * **deviceId**: id of the device. Array with counter values, each with their desired value and color: * **name** (string) : name of the counter. See :ref:`SupportedDevices ` to learn more about what counters are available depending on the device type. * **value** (integer) : >=0 or 'null'. The max value and the text on the display can vary depending on the device type. See :ref:`SupportedDevices ` for more info. * **color** (integer) : [0...1] .. http:put:: https://{hostIp}:7081/hal/devices/{deviceId}/counterdisplay **Example request**: .. sourcecode:: http PUT /hal/devices/counterdisplay1/counterdisplay HTTP/1.1 Accept: application/json Authorization: Bearer eyJhbGciOiJS... [ { "name": "COUNTER1", "value" : 1, "color" : 0 }, ... { "name": "COUNTERX", "value" : null, "color" : 1 } ] **Example response**: .. sourcecode:: http HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8 :statuscode 200: OK :statuscode 400: Bad Request. A descriptive error comes along with this error. :statuscode 401: Unauthorized. Something is wrong with the :mailheader:`Authorization` header of the request :statuscode 403: Forbidden. Something is wrong with the claims of the user. :statuscode 500: Internal Server Error :resheader Content-Type: defines the serialization format for the response body (this depends on the :mailheader:`Accept` header of the request)