Skip to content
.seventhings.com

Prefill your credentials

Fill in your non-secret values to have them appear in the examples below. Stored locally in your browser.

Get the history of an object.

GET
/customer-api/v1/object/{objectUuid}/history
curl --request GET \
--url 'https://your-instance.seventhings.com/customer-api/v1/object/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/history?page=1&per_page=50' \
--header 'Authorization: Bearer <token>'

Get the recorded changes of a single object, newest change first. Objects without any recorded change return an empty page.

objectUuid
required
string format: uuid
page
integer format: int32
default: 1 >= 1 <= 1000000

Page number of the results to fetch.

per_page
integer
default: 50 >= 1 <= 200

The number of history entries per page. A single entry can carry a full snapshot of the entity, so this is capped lower than the list endpoints.

Success

Media typeapplication/json
object
items
Array<object>

A single recorded change in the history of an object. The history is assembled from four sources and type says which one an entry comes from: asset for a change of the object itself, task for a task that referenced it, rental_case for a rental case it was part of, and object_merge for another object that was merged into it. The first three carry their payload in properties; an object_merge entry carries user_id and absorbedObjectData instead. Fields the calling role may not see are left out of a change entry.

object
type

The source the entry comes from.

string
Allowed values: asset task rental_case object_merge
date

The date and time of the change, in UTC.

string format: date-time
properties

The payload of the entry. Absent for an entry of type object_merge.

object
key
additional properties
any
key
additional properties
any
page
integer
per_page
integer
total
integer
Example
{
"items": [
{
"type": "asset",
"date": "2022-04-01T12:00:00+00:00"
}
]
}

Request body is missing or invalid or request data is invalid.

Access token is missing or invalid.

You are not permitted to perform the requested operation.

The requested resource representation has no acceptable format.

Internal Server Error.