Main Site HUB Security Scorecard API 6.6 Add A Company to a portfolio

HUB

6.6 Add A Company to a portfolio

Add A Company to a Portfolio

SecurityScorecard allows you to manage the companies you have in portfolio via an API. You can add and remove companies from a portfolio as well as get a list of all companies in a portfolio. This API endpoint allows you to add a company to a portfolio. You can check out the full specification for this endpoint here.

Resource URI

/portfolios/{portfolio_id}/companies/{domain}

Parameters:

Name Required Description
Portfolio ID Y The ID of the portfolio for which you want to generate this report
Domain Y The primary domain identifying a company in SecurityScorecard.

Sample Code:


            curl -X PUT \
                https://api.securityscorecard.io/portfolios/5d55b74ab9985f0022b0d2b4/companies/ovofinance.com \
                -H 'Accept: application/json' \
                -H 'Authorization: Token <Your API Key>' \
                -H 'Content-Type: application/json' \
                -H 'cache-control: no-cache' \
                -d ''
        

Sample Response:


{
    "domain": "ovofinance.com",
    "grade": "D",
    "grade_url": "https://s3.amazonaws.com/ssc-static/grades/factor_d.svg",
    "industry": "technology",
    "last30days_score_change": -1,
    "name": "OvoFinance",
    "score": 67,
    "size": "size_more_than_10000"
}