A player's edits

GET /v1/players/{key}/edits: the edits made in Atomo, and what became of each.

On this page
GET/v1/players/{key}/editsAPI key

The 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"

store and scope as for a player.

Answer

200
{
  "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, or save (Save now).

statestring

waiting, sent, applied, refused, expired or cancelled.

changesobject[]

Each field’s path (names, and places in lists counted from 1), the value before as it was seen, and the value after. 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_edit or too_large. What each means

foundobject[] | null

After a conflict, the values the game found: each path and its value.

fromVersionstring | null

For a restore, the save it went back to.