# ExportAll

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.

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

## Syntax

`public string ExportAll(` `string server` `);`

## Parameters

Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| server | string | The name of the server containing the repository to be exported. |

## Return values

Export JSON file as a string.

## Errors

Error responses

| Error | Message | Description |
| --- | --- | --- |
| AEM\_METHOD\_NOT\_SUPPORTED\_VERSION | AemExportAll is only supported on Replicate 5.5 or above. | The method requires Replicate 5.5 or above. |
| 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. |
| 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. |