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

# \_add

Create a new Stock Category

### Parameters

#### parent\_id

The ID of the parent stock category.

#### name

Name of the Stock Category to be added.

### Example

```
FM_api('StockCategory_add', ['parent_id' => '0', 'name' => 'Fire']);
```

### Result

#### On Success

```
{"ok":1,"id":3}
```
