# \_setArchive

Sets whether an Asset is Archived or not.

### Parameters

#### id

The ID of the Asset.

### Example

```
FM_api('Asset_setCode', ['id' => '123', 'value' => '221100']);
```

### Result

#### On Success

```
{'ok':1}
```

#### On Failure

If the Asset ID is not given:

```
{'error':'no ID provided'}
```

If the value is not given:

```
{'error':'no val provided'}
```

If the Asset is not found:

```
{'error':'asset does not exist'}
```
