This API allows you to manage the recycle bin.
Please note that this API is only meant for managing assets that are already in the recycle bin. If the recycle bin feature is enabled for a an Organizatino, deleting an asset via the Archive API will put the asset in the recycle bin instead of permanently deleting it.
A suite user token obtained via the login API must be provided in the request headers as either a bearer token or by using the userToken header.
Authorization: Bearer <user-token>User token: userToken <user-token>
Checks whether the Recycle Bin feature is enabled for a given Organization.
/api/recyclebin
Method: GET
Parameters:
Name | Value | Requirement | Description |
action | isRecycleBinEnabled | Mandatory | |
| organizationId | Number | Mandatory | Icareus Suite Organization ID |
curl -i -H userToken\:\ <user-token> -XGET https\://suiterc.icareus.com/api/recyclebin\?action\=isRecycleBinEnabled\&organizationId\=2631609
https://suiterc.icareus.com/api/recyclebin?action=isRecycleBinEnabled&organizationId=2631609
A successful response will have the HTTP Status code of 200, and failed requests will have a non-200 status code.
List all assets in the recycle bin for a given Organization.
/api/recyclebin
Method: GET
Parameters:
Name | Value | Requirement | Description |
action | getAssets | Mandatory | |
organizationId | Number | Mandatory | Icareus Suite Organization ID |
curl -i -H userToken\:\ <user-token> -XGET https\://suiterc.icareus.com/api/recyclebin\?action\=getAssets\&organizationId\=2631609
https://suiterc.icareus.com/api/recyclebin?action=getAssets&organizationId=2631609
A successful response will have the HTTP Status code of 200, and failed requests will have a non-200 status code.
This action allows you to fetch a list of all the assets currently in the Recycle Bin of the provided Organization.
/api/recyclebin
Method: GET
Parameters:
Name | Value | Requirement | Description |
action | recoverAsset | Mandatory | |
organizationId | Number | Mandatory | Icareus Suite Organization ID |
assetId | Number | Mandatory | ID of the Asset you wish to recover from the Recycle Bin. |
curl -i -H userToken\:\ <user-token> -XGET https\://suiterc.icareus.com/api/recyclebin\?action\=recoverAsset\&organizationId\=2631609\&assetId\=11487501
A successful response will have the HTTP Status code of 200, and failed requests will have a non-200 status code.
A successful response will include the asset as a JSON object along with the "status":"ok".
This action allows you to permanently delete an asset from the Recycle Bin.
/api/recyclebin
Method: GET
Parameters:
Name | Value | Requirement | Description |
action | deleteAsset | Mandatory | |
organizationId | Number | Mandatory | Icareus Suite Organization ID |
assetId | Number | Mandatory | ID of the Asset you wish to delete from the Recycle Bin. |
curl -i -H userToken\:\ <user-token> -XGET https\://suiterc.icareus.com/api/recyclebin\?action\=deleteAsset\&organizationId\=2631609\&assetId\=11371501
A successful response will have the HTTP Status code of 200, and failed requests will have a non-200 status code.
This action will permanently delete all assets from the Recycle Bin.
/api/recyclebin
Method: GET
Parameters:
Name | Value | Requirement | Description |
action | emptyRecycleBin | Mandatory | |
organizationId | Number | Mandatory | Icareus Suite Organization ID |
curl -i -H userToken\:\ <user-token> -XGET https\://suiterc.icareus.com/api/recyclebin\?action\=emptyRecycleBin\&organizationId\=2631609
https://suiterc.icareus.com/api/recyclebin?action=emptyRecycleBin&organizationId=2631609
A successful response will have the HTTP Status code of 200, and failed requests will have a non-200 status code.