# \_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"}
```
