A player's edits
GET /v1/players/{key}/edits: the edits made in Atomo, and what became of each.
/v1/players/{key}/editsAPI keyThe newest 100 edits made to the player in Atomo, and what became of each. Who made them stays inside your organisation: the API never says.
Request
curl https://api.useatomo.com/v1/players/Player_48213/edits \
-H "Authorization: Bearer $ATOMO_API_KEY"
local response = HttpService:RequestAsync({
Url = "https://api.useatomo.com/v1/players/Player_48213/edits",
Method = "GET",
Headers = { Authorization = key:AddPrefix("Bearer ") },
})
for _, edit in HttpService:JSONDecode(response.Body).edits do
print(edit.kind, edit.state, edit.reason)
end
store and scope as for a player.
Answer
{
"asOf": 1796474085469,
"key": "Player_48213",
"receivedAt": 1796474085413,
"edits": [
{
"id": "9eeeb26c4dce9a04",
"kind": "update",
"state": "applied",
"changes": [{ "path": ["coins"], "after": 18291, "before": 17291 }],
"reason": "Refund for the lost chest",
"askedAt": 1796474085444,
"answeredAt": 1796474099120,
"version": "08DE2C5A1B3F7E91.0000000003.08DE2C5A1B3F7E91.01",
"why": null,
"found": null,
"fromVersion": null
}
]
}
Each edit
- idstring
The edit’s id: what the game keeps in
AtomoEdits.- kindstring
update(an edit or an undo),restore, orsave(Save now).- statestring
waiting,sent,applied,refused,expiredorcancelled.- changesobject[]
Each field’s
path(names, and places in lists counted from 1), the valuebeforeas it was seen, and the valueafter. A missing value is left out.- reasonstring
Why, as the person wrote it. Empty for Save now.
- askedAtnumber
When it was made.
- answeredAtnumber | null
When the game answered.
- versionstring | null
The save the game made with it, once applied.
- whystring | null
Why it was refused:
conflict,denied,not_a_table,not_plain,bad_path,mark_taken,bad_editortoo_large. What each means- foundobject[] | null
After a conflict, the values the game found: each
pathand itsvalue.- fromVersionstring | null
For a restore, the save it went back to.