# ExportAll

## General

### URL

https://{host}/attunityenterprisemanager/api/v1/servers/{ServerName}?action=export

### Description

Export all definitions from the requested server repository on the selected server (server settings, tasks, endpoints, and so on). The definitions are exported to a JSON file.

Supported only with Replicate 5.2 and later.

### HTTP method

GET

### Required user role

See [Required Enterprise Manager permissions](https://help.qlik.com/en-US/enterprise-manager/May2026/Content/EnterpriseManager/EnterpriseManager_APIGuide/Introduction/AEMPermissions.htm).

## Request parameters

Request parameters

| Location | URL Param Name | Required | Example |
| --- | --- | --- | --- |
| URL | Host [string] | Yes | computer.network.net |
| URL | ServerName [string] | Yes | myrepsrv1 |
| Header | EnterpriseManager.APISessionID [string] | Yes | wCo0\_KvjEUFROvfHF5KGrw |

## Response

JSON File

## cURL example

### Request

curl -i -k --header "EnterpriseManager.APISessionID: wCo0\_KvjEUFROvfHF5KGrw" https://computer.network.net/attunityenterprisemanager/api/v1/servers/ myrepsrv1?action=export

### Response

JSON file (stream)

## Error response

Error responses

| HTTP Code | Enterprise Manager Code | Text | Description |
| --- | --- | --- | --- |
| 500 | AEM\_METHOD\_NOT\_SUPPORTED\_VERSION | ExportAll is only supported on Replicate 5.2 or above. | The method requires Replicate 5.2 or above. |
| 500 | AEM\_EXPORT\_NO\_PERMISSION\_ON\_TASK | Failed to export all tasks from Replicate server {server} as the logged in user does not have permission to export one or more of the defined tasks. | Export all cannot be carried out because the user does not have permissions on one or more tasks. |
| 500 | AEM\_EXPORT\_NO\_PERMISSION\_ON\_ENDPOINT | Failed to export all tasks from server {server} as the logged in user does not have permission to export one or more of the defined endpoints. | Export all cannot be carried out because the user does not have permissions on one or more endpoints. |