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

# \_new

Creates a new department

### Parameters

#### name

Name of new department

#### Example

```
FM_api('Department_new', ['name'=>'Testing'])
```

#### On Success

Returns success and new department id "{"ok":1,"id":4}"

#### On Error (No Name)

```
"{"error":"no name supplied"}"
```
