Graph History
How this graph got to be the way it is. Its own past only — a run carries its own copy of the definition, so its edits are its own history, not the graph’s.
GET
/api/v1/graphs/{graph_id}/historyAuthorization
AuthorizationBearer token · headerrequiredor
AuthorizationOAuth2 access token · headerrequiredPath parameters
graph_idstringrequiredQuery parameters
windowintegerSeconds of quiet that separate one entry from the next. A board autosaves the moment you stop typing, so the default folds a working session into one entry; 0 shows every save.
min 0 · max 86400 · default: 300
Responses
200Successful Response
successbooleandefault: true
dataHistoryList | anyShow propertiesHide properties
Any of:
HistoryList
checkpointsCheckpoint[]requiredShow propertiesHide properties
Array of
Checkpointatstring<date-time>requiredactor_idstring | anyShow propertiesHide properties
Any of:
string
stringany
anychangedstring[]requiredsavesintegerrequiredcreatedbooleandefault: false
authorsobjectrestorablebooleandefault: true
any
anymessagestring | anyShow propertiesHide properties
Any of:
string
stringany
anyerrorsstring[] | anyShow propertiesHide properties
Any of:
string[]
Array of
stringstringany
any422Validation Error
detailValidationError[]Show propertiesHide properties
Array of
ValidationErrorlocstring | integer[]requiredShow propertiesHide properties
Array of
string | integerAny of:
string
stringinteger
integermsgstringrequiredtypestringrequiredinputanyctxobjectRequest
curl -X GET "/api/v1/graphs/string/history" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("/api/v1/graphs/string/history", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_TOKEN"
}
});import requests
response = requests.get(
"/api/v1/graphs/string/history",
headers={
"Authorization": "Bearer YOUR_TOKEN"
},
)Response
{
"success": true,
"data": {
"checkpoints": [
{
"at": "2019-08-24T14:15:22Z",
"actor_id": "string",
"changed": [
"string"
],
"saves": 0,
"created": false
}
],
"authors": {
"property1": "string",
"property2": "string"
},
"restorable": true
},
"message": "string",
"errors": [
"string"
]
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}