# Restores a trashed deployment back to an active state Used to restore the deployment. ## Endpoint `POST /intelligence/api/deployments/{deploymentId}/restore` ## Request URL `https://{server-hostname}:8383/intelligence/api/deployments/{deploymentId}/restore` ## Scope `DEX.CREATE` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** `string` — Mandatory - `application/deploymentRestore.v1+json` ### Path Parameters - **deploymentId** `string` — Mandatory ## Sample Request ```curl curl --request POST \ --url https://appdomain/intelligence/api/deployments/{deploymentId}/restore \ --header 'Accept: application/deploymentRestore.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 200 #### Response Body — `application/json` - `JSON Object` - **message** `string` - Confirmation message that the deployment was restored ### Sample Response: HTTP 200 ```json { "message": "Deployment 'Onboarding Deployment' has been restored successfully." } ``` ![Help](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.