# 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 URL `https://`[{serverurl}](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)`/dcapi/swDeployment/package/restoreArchivedPackages` ## Scope `DesktopCentralCloud.SWDeployment.CREATE` ### Header `Authorization: Zoho-oauthtoken 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/cloud/packages-list-packages.html) API. ## Sample Request ```curl curl --request POST \ --url https://appdomains/dcapi/swDeployment/package/restoreArchivedPackages \ --header 'Accept: application/PackageRestoreStatus.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/PackageRestoreStatus.v1+json' \ --data '{}' ``` ## Sample Request Body ### Restore one package ```json { "packageIds": [ 10001 ] } ``` ### Restore multiple packages ```json { "packageIds": [ 10001, 10002 ] } ``` ## 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" } ``` ## API Limits ![](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.