Main Site HUB Security Scorecard API 6.3 Update an existing portfolio

HUB

6.3 Update an existing portfolio

Update 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 update an 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
Name Y Name of the portfolio)
Description Y A description of the portfolio
Privacy Y Either private or shared indicating if you want to create a private or shared (with all other users in your company) portfolio

Sample Code:


            curl -X PUT \
                https://api.securityscorecard.io/portfolios/5d55b74ab9989f0022b0d2b4 \
                -H 'Accept: application/json' \
                -H 'Authorization: Token <Your API Key>' \
                -H 'Content-Type: application/json' \
                -H 'cache-control: no-cache' \
                -d '{"name": "Finance Dept. Vendors", "description": "All vendors used by the finance department.", "privacy": "shared"}'
        

Sample Response:


{
    "description": "All vendors used by the finance department.",
    "id": "5d55b74ab9989f0022b0d2b4",
    "name": "Finance Dept. Vendors",
    "privacy": "shared"
}