# \_list

Fetches all the different types of Tasks.

### Parameters

None.

### Example

```
FM_api('TaskTypes_list');
```

### Results

#### On Success

A list of the types of Tasks and their IDs. For example: {\['id':'1','name':'Email'],\['id':'2','name':'Case'],\['id':'3','name':'Phone Call']}

#### On Failure

If the User is not logged in: {'error':'not logged in'}
