Erased all my entries AND the fields

  1. wrong endpoint

/updateCollection/
updates the collection itself, its labels and fields config - not an entry

You need to call /save/ instead:
/api/collections/save/COLLECTION_NAME

  1. wrong params

The params expected are

{
  data: {_id: ENTRY_ID, ...},  // or array of entries [{_id: ...}, {_id: ...}]
  revision: true,              // optional; default: false  
}

// update
corrected misspelled param revision (was revisions).

1 Like