Get booth's latest values for tags

GET /api/booths/{id}/latest_values_for

Allows you to retrieve the latest values for a given set of tags for a specific booth

Path parameters

  • id string Required

    id of the booth

Query parameters

  • tags string Required

    comma-separated list of tag names to request

Responses

  • OK

    Hide response attribute Show response attribute object
    • data object

      List of latest values for the tags requested

      Additional properties are allowed.

      Hide data attribute Show data attribute object
      • tag_name object

        Value of the tag

        Additional properties are allowed.

        Hide tag_name attributes Show tag_name attributes object
        • name string

          Name of the tag

        • ISO8601 formatted timestamp when the value was recorded

        • value string

          The value of the tag

  • Bad request

    Hide response attribute Show response attribute object
    • error string

      Human readable version of the error status code

  • Unauthorized

    Hide response attribute Show response attribute object
    • error string

      Human readable version of the error status code

GET /api/booths/{id}/latest_values_for
curl \
 -X GET http://localhost:4000/api/booths/{id}/latest_values_for?tags=string
Response examples (200)
{
  "data": {
    "tag_name": {
      "name": "string",
      "system_time": "string",
      "value": "string"
    }
  }
}
Response examples (400)
{
  "error": "Error Reason"
}
Response examples (400)
{
  "error": "Error Reason"
}
Response examples (401)
{
  "error": "Error Reason"
}
Response examples (401)
{
  "error": "Error Reason"
}