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

# \_save

Save changes to an Account Category.

### Parameters

#### id

The ID of the Account Category to be updated. If no id supplied, a new Account Category will be created.

#### name

The name of the Account Category

#### tax\_rate

The percentage tax\_rate of the Account Category (float or integer)

#### group\_id

The ID of an existing Account Category Group to which the Category will belong

### Example

```
FM_api('AccountCategory_save', ['id'=>'14', 'name'=>'Cost Of Sales', 'tax_rate'=>'23', 'group_id'=>'10']);
```

### Result

#### On Success

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

#### On Failure

If invalid parameter(s) supplied, returns false.

```
false
```
