Template HTTP

HTTP template configuration

The HTTP template doesn't need any particular configuration. Once the HTTP template type has been selected, it is possible to start the transmission. 

Transmitting to a template

Data must be forwarded to https://api.databoom.com/v1/signals/push/<unique arbitrary value>. 

Data format to use is the following:

    "type": "data",
    "message":  [
        "template": "<HTTP template token>",
        "date": "2018-04-12T15:00:00.000Z",
        "signals": [
            "name": "<signal 1 token>",
            "value": <signal 1 value>
            "name": "<signal 2 token>",
            "value": <signal 2 value>

Data publication implies:

  • If there weren't previous communications, the creation of a new device with the token <HTTP template token>-<unique arbitrary value> where:
    • <HTTP template token> is inside the message and corresponds to the reference template;
    • <unique arbitrary value> is the value set by the user in the address.
    The device will be populated withe the same signals of the template (new signals with the same tokens), regardless their values being sent or less. The signals are already validated and ready to communicate. If signals contains signals not appearing in the template, they're added only to the device, waiting for validation;
  • If there were previous communications, the update of <template token>-<unique arbitrary value> with values in signals. If a new signal has been added to the template, it is also created in the device;
  •  message is an array, is therefore possible to create/communicate with more devices per publication, provided that they refer to different devices.
Have more questions? Submit a request


Please sign in to leave a comment.