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

# IOrganizationExportTemplatesService

- 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/organization/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 organization-level export templates.

**Signature:**

```typescript
export interface IOrganizationExportTemplatesService 
```

## Methods

| Method | Description |
| --- | --- |
| [createExportTemplate(template)](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iorganizationexporttemplatesservice/index.md#iorganizationexporttemplatesservicecreateexporttemplate) | **_(BETA)_** Create a new export template. |
| [deleteExportTemplate(ref)](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iorganizationexporttemplatesservice/index.md#iorganizationexporttemplatesservicedeleteexporttemplate) | **_(BETA)_** Delete an existing export template. |
| [getExportTemplate(ref)](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-backend-spi/sdk-backend-spi.iorganizationexporttemplatesservice/index.md#iorganizationexporttemplatesservicegetexporttemplate) | **_(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.iorganizationexporttemplatesservice/index.md#iorganizationexporttemplatesservicegetexporttemplates) | **_(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.iorganizationexporttemplatesservice/index.md#iorganizationexporttemplatesservicepatchexporttemplate) | **_(BETA)_** Partially update an existing export template. Only the provided properties are changed. |

## Method details

### IOrganizationExportTemplatesService.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

### IOrganizationExportTemplatesService.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

### IOrganizationExportTemplatesService.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

### IOrganizationExportTemplatesService.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 organization

### IOrganizationExportTemplatesService.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
