# Restores previously archived packages back to active state Moves one or more archived packages back to live (active) state so they can be used again in deployments and SSP publishing. ## Endpoint `POST /dcapi/swDeployment/package/restoreArchivedPackages` ## Request ### Request URL `https://{server-hostname}:8383/dcapi/swDeployment/package/restoreArchivedPackages` ### Scope `SWDeployment.CREATE` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Content-Type** `string` — **Mandatory**: `application/PackageRestoreStatus.v1+json` - **Accept** `string` — **Mandatory**: `application/PackageRestoreStatus.v1+json` #### Request Body `application/json` - `packageIds` `array` — Optional Array of package ID longs to restore. Obtain package IDs from the `packageId` field in the response of the [List Packages](https://www.manageengine.com/products/desktop-central/help/api/onpremise/packages-list-packages.html) API. ### Sample Request ```curl curl --request POST \ --url https://appdomain/dcapi/swDeployment/package/restoreArchivedPackages \ --header 'Accept: application/PackageRestoreStatus.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/PackageRestoreStatus.v1+json' \ --data '{"packageIds":[10001]}' ``` ### Sample Request Body #### Restore one package ```json { "packageIds": [ 10001 ] } ``` #### Restore multiple packages ```json { "packageIds": [ 10001, 10002 ] } ``` ## Response ### Response Parameters #### HTTP Code 200 Response body: `application/json` - `status` `string` Operation result message #### HTTP Code 500 Response body: `application/json` - `errorCode` `string` `SW_INTERNAL_ERROR` for cleanup settings failures, `INTERNAL_ERROR` for restore operation errors - `errorMessage` `string` Internal server error with details about the cleanup policy or archive restore failure ### Possible Response Codes - `200` — HTTP code - `500` — HTTP code ### Sample Response: HTTP 200 #### Packages restored ```json { "status": "success" } ``` ### Sample Response: HTTP 500 #### Server error ```json { "errorMessage": "Internal Server Error", "errorCode": "INTERNAL_ERROR" } ``` ## Rate Limit ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 30 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.