Podio API Documentation

Items: Get item revision difference

GET /item/{item_id}/revision/{revision_from}/{revision_to}

Returns the difference in fields values between the two revisions.

Usage
PHP Client
PodioItemDiff.php
PodioItemDiff::get_for( $item_id, $revision_from_id, $revision_to_id );
Ruby Gem
item_diff.rb
Podio::ItemDiff.find_by_item_and_revisions( item_id, revision_from_id, revision_to_id )
Parameters
item_id*
Required.
revision_from*
Required.
revision_to*
Required.
Response [ { "external_id": The external_id of the field,
"field_id": The id of the field,
"type": The type of the field, "label": The label of the field, "from": The values at the from revision, [ { {sub_id}: The actual value .... (more values) }, ... (more values) ], "to": The values at the to revsion, [ { {sub_id}: The actual value .... (more values) }, ... (more values) ] }, ... (more fields) ]  

This could f.ex. look like this (the value of field 1 changes from "yes" to "no")

[  { "external_id": 1234, "field_id": 1, "type": "state", "label": "Is hired?", "from": [ { "value":"yes" } ] "to": [ { "value":"no" } ]   }
]

Sandbox

Try the operation "/item/{item_id}/revision/{revision_from}/{revision_to}"

You can simulate the API request by filling out the arguments below, and press the submit button to see the response.

You need to be logged in to Podio to use the Sandbox. Login here