# \_templateTypeSet

Sets the template type to either Portable Document Format (PDF) or a word processing document.

### Parameters

#### type

The type to set the template to: either 0 for PDF or 1 for a word processing document.

### Example

```
FM_api('Quotes_templateTypeSet', ['type' => '1']);
```

### Result

#### On Success

```
{'ok':1}
```

#### On Failure

If the user is not logged in:

```
{'error':'not logged in'}
```

If the user is not a client administrator:

```
{'error':'you are not an admin'}
```
