Roadtrippers Developer Hub

Welcome to the Roadtrippers Developer Hub. You'll find comprehensive guides and documentation to help you start working with Roadtrippers as quickly as possible, as well as support if you get stuck. Let's jump right in!

Change Tracking

The Boone platform can track changes to custom data.

/api/v2/diffs

Fetch a paginated set of diffs.

Returns

status: 200

Response Details

diff

NameTypeRequired?Description
idintegerYesDatabase ID of the diff.
diffable_typestringYesContent type of the described object.
diffable_idintegerYesDatabase ID of the described object.
detailsobjectYesHash with keys for each attribute that was involved.
created_atstringYesTime at which the diff was created.
updated_atstringYesTime at which the diff was last updated.
organization_idintegerYesDatabase ID of organization responsible for this change.
actionstringYesSingle character expression indicating the action taken. Valid actions are C, R, U, and D.

Example Result

{
  "data": [
    {
      "id": 19,
      "diffable_id": 19,
      "diffable_type": "Place",
      "details": {
        "name": ["old name", "new name"]
      },
      "created_at": "2017-03-01T21:36:40.266Z",
      "updated_at": "2017-03-01T21:36:40.266Z",
      "organization_id": 167,
      "action": "U"
    }
  ],
  "links": {
    "first": "http://atlas.roadtrippers.com/api/v2/diffs?limit=100&offset=0",
    "last": "http://atlas.roadtrippers.com/api/v2/diffs?limit=100&offset=0",
    "self": "http://atlas.roadtrippers.com/api/v2/diffs?limit=100&offset=0"}

Updated 2 years ago

Change Tracking


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.