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

# \_edit

Modify the name of a Task Type.

### Parameters

#### name

The name given to the chosen task.

#### id

The id of the chosen task.

### Example

```
FM_api('TaskType_edit', ['id' => '0', 'name' => 'test task type success']);
```

### Results

#### On Success

Upon renaming a Task Type from "test task type" to "test task type success"

```
{"ok":1,"id":0,"task_id":30004}
```

#### On Failure

If you were to press "Edit Type" but leave the dialog box blank

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