diff --git a/Packs/DemistoRESTAPI/Integrations/CoreRESTAPI/CoreRESTAPI.js b/Packs/DemistoRESTAPI/Integrations/CoreRESTAPI/CoreRESTAPI.js index 3d09e91a697a..f913ff8d5e2f 100644 --- a/Packs/DemistoRESTAPI/Integrations/CoreRESTAPI/CoreRESTAPI.js +++ b/Packs/DemistoRESTAPI/Integrations/CoreRESTAPI/CoreRESTAPI.js @@ -269,23 +269,29 @@ var installPack = function(pack_url, entry_id, skip_verify, skip_validation){ file_path = res.Path; } - let upload_url = 'contentpacks/installed/upload?' - - // set the skipVerify parameter - if(isDemistoVersionGE('6.5.0')){ - if (skip_verify && skip_verify === 'false') { - upload_url+='skipVerify=false' - }else{ - upload_url+='skipVerify=true' - } + let upload_url = 'contentpacks/installed/upload' + + // from version 8.9.0 we will upload as custom content + if(isDemistoVersionGE('8.9.0')){ + upload_url+='/custom' } + else{ + // set the skipVerify parameter + if(isDemistoVersionGE('6.5.0')){ + if (skip_verify && skip_verify === 'false') { + upload_url+='?skipVerify=false' + }else{ + upload_url+='?skipVerify=true' + } + } - // set the skipValidation parameter - if(isDemistoVersionGE('6.6.0')){ - if (skip_validation && skip_validation === 'false') { - upload_url+='&skipValidation=false' - }else{ - upload_url+='&skipValidation=true' + // set the skipValidation parameter + if(isDemistoVersionGE('6.6.0')){ + if (skip_validation && skip_validation === 'false') { + upload_url+='&skipValidation=false' + }else{ + upload_url+='&skipValidation=true' + } } } // upload the pack diff --git a/Packs/DemistoRESTAPI/ReleaseNotes/1_3_62.md b/Packs/DemistoRESTAPI/ReleaseNotes/1_3_62.md new file mode 100644 index 000000000000..87bf5e7b0fdd --- /dev/null +++ b/Packs/DemistoRESTAPI/ReleaseNotes/1_3_62.md @@ -0,0 +1,6 @@ + +#### Integrations + +##### Core REST API + +- Changed the ***installPack*** from version 8.9.0 to install as custom content. diff --git a/Packs/DemistoRESTAPI/pack_metadata.json b/Packs/DemistoRESTAPI/pack_metadata.json index 0f4397caa1dc..bfb9b494f812 100644 --- a/Packs/DemistoRESTAPI/pack_metadata.json +++ b/Packs/DemistoRESTAPI/pack_metadata.json @@ -2,7 +2,7 @@ "name": "Cortex REST API", "description": "Use Demisto REST APIs", "support": "xsoar", - "currentVersion": "1.3.61", + "currentVersion": "1.3.62", "author": "Cortex XSOAR", "url": "https://www.paloaltonetworks.com/cortex", "email": "",