Get booth's latest values for tags at a given timestamp

GET /api/booths/{id}/latest_values_at

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

Path parameters

  • id string Required

    id of the booth

Query parameters

  • tags string Required

    comma-separated list of tag names to request

  • before string Required

    ISO8601 formatted date before which the latest tags should be retrieved

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_at
curl \
 -X GET http://localhost:4000/api/booths/{id}/latest_values_at?tags=string&before=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"
}