> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.pdfgeneratorapi.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Release Notes 2.39.0 (13.06.2019)

### Improvements

###### Template export & import in the Editor
It is now possible to Export & Import your templates from the Editor. You can find Export and Import options from the File menu.

###### Create and update template via API
It is now possible to create and update template data (including access type, tags, name and components) via API. The request body must contain the same structure as the exported template from the editor or via API using the [Get template](https://docs.pdfgeneratorapi.com/#templates-get) endpoint.

**Fetch the template**
```GET https://us1.pdfgeneratorapi.com/api/v3/templates/{templateId}```
**Create a new template**
```POST https://us1.pdfgeneratorapi.com/api/v3/templates```
**Update a template**
```PUT https://us1.pdfgeneratorapi.com/api/v3/templates/{templateId}```

|| Updating a template via API overrides the entire template definition, so the template structure must be complete.