# Moves a deployment to the trash for deferred deletion or restoration Used to trash the deployment. ## Endpoint `POST /intelligence/api/deployments/{deploymentId}/trash` ## Request URL `https://{server-hostname}:8383/intelligence/api/deployments/{deploymentId}/trash` ## Scope `DEX.CREATE` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** (string, Mandatory): `application/deploymentTrash.v1+json` ### Path Parameters - **deploymentId** (string, Mandatory) ## Sample Request ```curl curl --request POST \ --url https://appdomain/intelligence/api/deployments/{deploymentId}/trash \ --header 'Accept: application/deploymentTrash.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP code 200 #### Response Body: `application/json` JSON Object - **message** (string): Confirmation message that the deployment was moved to trash ## Sample Response: HTTP 200 ```json { "message": "Deployment 'Onboarding Deployment' has been moved to trash." } ``` ## Rate 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.