Restore Multiple
client.assets.restoreMultiple(AssetRestoreMultipleParams { assetIds, projectId } params, RequestOptionsoptions?): AssetRestoreMultipleResponse { restoredAssetIds, skippedAssets }
POST/assets/restore
Restore assets deleted in the last 30 days. Tags and collections are not restored. Max plan and above only.
Restore Multiple
import Scenario from '@scenario-labs/sdk';
const client = new Scenario({
apiKey: process.env['SCENARIO_SDK_API_KEY'], // This is the default and can be omitted
apiSecret: process.env['SCENARIO_SDK_API_SECRET'], // This is the default and can be omitted
});
const response = await client.assets.restoreMultiple({ assetIds: ['string'] });
console.log(response.restoredAssetIds);{
"restoredAssetIds": [
"string"
],
"skippedAssets": [
{
"assetId": "assetId",
"reason": "not-found"
}
]
}Returns Examples
{
"restoredAssetIds": [
"string"
],
"skippedAssets": [
{
"assetId": "assetId",
"reason": "not-found"
}
]
}