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

# \_new

Creating a new Task Type.

### Parameters

#### name

The name given to the new Task Type.

### Example

```
FM_api('TaskType_new', [
  'name' => 'new task type'
]);
```

### Results

#### On Success

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

#### On Failure

If "Create Type" is pressed while the dialogue box is left blank.

```
{"error":"invalid or missing parameter: name"}
```
