# \_update

Update a Stock Category details.

### Parameters

#### id

The ID of the Stock Category.

#### name

New name of the Stock Category to be updated.

#### stock

Stock to be updated.

### Example

```
FM_api('StockCategory_update', ['id' => '3', 'name' => 'TEST NAME', 'stock' => 'TEST STOCK']);
```

### Result

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