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

# \_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'}
```
