> 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/stockcategory/_update.md).

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