# Erased all my entries AND the fields

**URL:** <https://discourse.getcockpit.com/t/erased-all-my-entries-and-the-fields/2036>\
**Category:** Support\
**Created:** [August 9, 2021, 5:50am UTC](https://discourse.getcockpit.com/t/erased-all-my-entries-and-the-fields/2036 "2021-08-09T05:50:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![abernh](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/abernh/32/859_2.png) [@abernh](https://discourse.getcockpit.com/u/abernh)\
**Post date:** [August 9, 2021, 6:59am UTC](https://discourse.getcockpit.com/t/erased-all-my-entries-and-the-fields/2036/2 "2021-08-09T06:59:51Z")

</div>

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

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

```

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

---

_[View the full topic](https://discourse.getcockpit.com/t/erased-all-my-entries-and-the-fields/2036)._
