# Move one or more configurations to the trash Moves one or more configurations to the trash. Trashed configurations can be restored or permanently deleted later. ## Endpoint `POST /dcapi/configuration/moveToTrash` ## Request ### Request URL `https://[{serverurl}](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)/dcapi/configuration/moveToTrash` ### Scope `DesktopCentralCloud.Configurations.DELETE` ### Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Content-Type** (`string`, Mandatory): `application/moveConfigToTrash.v1+json` - **Accept** (`string`, Mandatory): `application/moveConfigToTrashStatus.v1+json` #### Request Body `application/json` - JSON Object - **collectionIds** (`array`, Optional): Array of active configuration collection IDs to move to trash. Each ID must reference a valid active configuration belonging to the requesting customer. Fetch from [Get Configurations View](https://www.manageengine.com/products/desktop-central/help/api/cloud/deployment-fw-get-configurations-view.html). Maximum 500 entries. ### Sample Request ```curl curl --request POST \ --url https://appdomains/dcapi/configuration/moveToTrash \ --header 'Accept: application/moveConfigToTrashStatus.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/moveConfigToTrash.v1+json' \ --data '{}' ``` ### Sample Request Body Move multiple collections to trash ```json { "collectionIds": [ 12345, 12346, 12347 ] } ``` ## Response Parameters ### HTTP Code 200 Response Body — `application/json` - JSON Object - **status** (`string`): Result of the operation — Success when all collections were moved to trash - **collectionName** (`array`): List of configuration display names that were moved to trash #### Sample Response: HTTP 200 All collections successfully moved to trash ```json { "status": "Success", "collectionName": [ "Firewall_Policy_Win11", "Chrome_Settings_v2" ] } ``` ### HTTP Code 401 Response Body — `application/json` - JSON Object - **errorCode** (`long`): Unauthorized error code returned when authentication credentials are missing, expired, or invalid (authentication=required) - **errorMsg** (`string`): Authentication failure reason #### Sample Response: HTTP 401 User lacks write role, scope, or customer does not own the collection ```json { "error_description": "Access denied - You are not allowed to access the requested resource.", "error_code": "UAC_UNAUTHORIZED" } ``` ### HTTP Code 500 Response Body — `application/json` - JSON Object - **error_code** (`string`): 50001: internal server error code indicating unexpected exception in the service layer - **error_description** (`string`): Internal server error. Contact administrator. #### Sample Response: HTTP 500 Unexpected failure during the trash operation ```json { "error_description": "Internal server error. Contact administrator.", "error_code": "50001" } ``` ## 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.