> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# IWorkspaceExportTemplatesService

- Package: [@gooddata/sdk-backend-spi](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/index.md)
- Kind: interface
- Stability: beta
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-backend-spi/src/workspace/exportTemplates/index.ts

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Service for managing workspace-level export templates.

**Signature:**

```typescript
export interface IWorkspaceExportTemplatesService 
```

## Methods

| Method | Description |
| --- | --- |
| [createExportTemplate(template)](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iworkspaceexporttemplatesservice/index.md#iworkspaceexporttemplatesservicecreateexporttemplate) | **_(BETA)_** Create a new export template. |
| [deleteExportTemplate(ref)](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iworkspaceexporttemplatesservice/index.md#iworkspaceexporttemplatesservicedeleteexporttemplate) | **_(BETA)_** Delete an existing export template. |
| [getExportTemplate(ref)](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iworkspaceexporttemplatesservice/index.md#iworkspaceexporttemplatesservicegetexporttemplate) | **_(BETA)_** Get a single export template by its reference. |
| [getExportTemplates()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iworkspaceexporttemplatesservice/index.md#iworkspaceexporttemplatesservicegetexporttemplates) | **_(BETA)_** Get the list of available export templates for slide exports. |
| [patchExportTemplate(ref, template)](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iworkspaceexporttemplatesservice/index.md#iworkspaceexporttemplatesservicepatchexporttemplate) | **_(BETA)_** Partially update an existing export template. Only the provided properties are changed. |

## Method details

### IWorkspaceExportTemplatesService.createExportTemplate()

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Create a new export template.

**Signature:**

```typescript
createExportTemplate(template: IExportTemplateDefinition): Promise<IExportTemplate>;
```

#### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| template | [IExportTemplateDefinition](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iexporttemplatedefinition/index.md) | definition of the export template to create |

**Returns:**

Promise&lt;[IExportTemplate](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iexporttemplate/index.md)&gt;

promise with the created export template

### IWorkspaceExportTemplatesService.deleteExportTemplate()

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Delete an existing export template.

**Signature:**

```typescript
deleteExportTemplate(ref: ObjRef): Promise<void>;
```

#### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| ref | [ObjRef](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.objref/index.md) | reference to the export template to delete |

**Returns:**

Promise&lt;void&gt;

promise

### IWorkspaceExportTemplatesService.getExportTemplate()

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Get a single export template by its reference.

**Signature:**

```typescript
getExportTemplate(ref: ObjRef): Promise<IExportTemplate>;
```

#### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| ref | [ObjRef](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.objref/index.md) | reference to the export template |

**Returns:**

Promise&lt;[IExportTemplate](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iexporttemplate/index.md)&gt;

promise with the export template

### IWorkspaceExportTemplatesService.getExportTemplates()

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Get the list of available export templates for slide exports.

**Signature:**

```typescript
getExportTemplates(): Promise<IExportTemplate[]>;
```
**Returns:**

Promise&lt;[IExportTemplate](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iexporttemplate/index.md)[]&gt;

promise with array of export templates available in the workspace

### IWorkspaceExportTemplatesService.patchExportTemplate()

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Partially update an existing export template. Only the provided properties are changed.

**Signature:**

```typescript
patchExportTemplate(ref: ObjRef, template: Partial<IExportTemplateDefinition>): Promise<IExportTemplate>;
```

#### Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| ref | [ObjRef](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.objref/index.md) | reference to the export template to update |
| template | Partial&lt;[IExportTemplateDefinition](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iexporttemplatedefinition/index.md)&gt; | subset of the export template properties to change |

**Returns:**

Promise&lt;[IExportTemplate](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iexporttemplate/index.md)&gt;

promise with the updated export template
