> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/undo/_archive.md).

# \_archive

Archives a version of an object.

### Parameters

#### id

The ID of the object version which will be archived.

### Example

```
FM_api('Undo_archive', [
    'id'=>'90003'
    ]
);
```

### Result

#### On Success

```
{"ok":1}
```

If the version was already archived beforehand:

```
{"ok":1,"warning":"no change needed"}
```

#### On Failure

If the "id" parameter is not set or has a value less than 1:

```
{"error":"missing or invalid parameter: id"}
```

If the "id" parameter does not match the ID of an existing version:

```
{"error":"undo entry does not exist"}
```
