Short URLs - Audit Entries API

List audit entries of a short URL

List all audit entries of a short URL with a specific ID.

GET /short_urls/:id/audit

Response

Status: 200 OK
[
  {
    "id": 15215,
    "action": "update",
    "created_at": "2017-01-20T18:50:56-06:00",
    "user": {
      "id": 156,
      "display_name": "Ellen Brown",
      "account": {
        "id": "widget",
        "name": "Widget International"
      }
    },
    "changes": {
      "field2": [
        "Old Value",
        "New Value"
      ]
    }
  },
  {
    "id": 14426,
    "action": "create",
    "created_at": "2016-12-22T12:13:00-06:00",
    "user": {
      "id": 128,
      "display_name": "Howard Tanner",
      "account": {
        "id": "widget",
        "name": "Widget International"
      }
    },
    "changes": {
      "field1": [
        null,
        "New Value"
      ],
      "field2": [
        null,
        "New Value"
      ],
      "...": [
        null,
        "..."
      ]
    }
  }
]

The response contains these fields.

Fields

action
Readonly enum — The Action field indicates the type of transactions that caused the audit entry to be generated. Possible values are:
  • create
  • update
  • destroy
changes
Optional hash — The Changes field provides the old and the new value of each field’s value that was set or changed by the transaction that caused the audit entry to be generated.
created_at
Readonly datetime — The date and time at which the audit entry was created.
id
Readonly integer — The unique ID of the audit entry.
user
Readonly reference to Person — The User field is set to the person who caused the audit entry to be generated.