GET /api/booths/{id}/audit_history

Returns all audit changes for the booth with the date and the username of the user who performed each change.

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • data array[object]

      List of audit changes for a booth

      Hide data attributes Show data attributes object
      • changed_field string

        The field that was changed

      • from_value string

        The previous value of the field

      • performed_at string

        ISO8601 formatted timestamp when the change was performed

      • to_value string

        The new value of the field

      • username string

        The username of the user who performed the change

  • 401 application/json

    Unauthorized

    Hide response attribute Show response attribute object
    • error string

      Human readable version of the error status code

  • 404 application/json

    Not Found

    Hide response attribute Show response attribute object
    • error string

      Human readable version of the error status code

GET /api/booths/{id}/audit_history
curl \
 --request GET 'http://localhost:4000/api/booths/{id}/audit_history' \
 --header "Authorization: $API_KEY"
Response examples (200)
{
  "data": [
    {
      "changed_field": "string",
      "from_value": "string",
      "performed_at": "string",
      "to_value": "string",
      "username": "string"
    }
  ]
}
Response examples (401)
{
  "error": "Error Reason"
}
Response examples (404)
{
  "error": "Error Reason"
}