Main Site HUB Security Scorecard API 6.4 Delete an existing portfolio

HUB

6.4 Delete an existing portfolio

Delete An Existing Portfolio

SecurityScorecard allows you to manage your portfolios via an API. You can create, update, and delete portfolios as well as get a list of all your current portfolios. This API endpoint allows you to delete an existing portfolio. You can check out the full specification for this endpoint here

Resource URI

/portfolios/{portfolio_id}

Parameters:

Name Required Description
Portfolio ID Y The ID of the Portfolio you want to update

Sample Code:


            curl -X DELETE \
                https://api.securityscorecard.io/portfolios/5d55b5f5e47a1800187331e4 \
                -H 'Accept: application/json' \
                -H 'Authorization: Token <Your API Key>' \
                -H 'Content-Type: application/json' \
                -H 'cache-control: no-cache'
        

Sample Response:

HTTP 204

The Server successfully processed the request, but is not returning any content.