{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/security-scorecard/json-schema/security-scorecard-get-portfolio-schema.json",
  "title": "getPortfolio",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/security-scorecard-portfolios-api-openapi.yml#/components/schemas/getPortfolio",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "entries": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
            "description": "Identifier",
            "type": "string"
          },
          "name": {
            "type": "string",
            "description": "human-readable name"
          },
          "description": {
            "type": "string",
            "description": "description"
          },
          "privacy": {
            "type": "string",
            "description": "private: only visible to owner, shared: visible to the entire organization, team: group of users within an organization",
            "enum": [
              "private",
              "shared",
              "team"
            ]
          },
          "read_only": {
            "type": "boolean",
            "description": "true or false",
            "default": false
          },
          "created_at": {
            "format": "date-time",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}[T ]\\d{2}:\\d{2}:\\d{2}\\.{0,1}[0-9]*Z$",
            "description": "created date"
          },
          "is_public": {
            "type": "boolean",
            "description": "true or false",
            "default": false,
            "deprecated": true
          },
          "owner_organization_id": {
            "pattern": "^(?:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})?$",
            "description": "ID of the organization that owns this portfolio",
            "type": "string",
            "deprecated": true
          },
          "owner_team_id": {
            "pattern": "^(?:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})?$",
            "description": "ID of the team that owns this portfolio",
            "type": "string",
            "deprecated": true
          },
          "owner_user_id": {
            "pattern": "^(?:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})?$",
            "description": "ID of the user that owns this portfolio",
            "type": "string",
            "deprecated": true
          },
          "shared_access": {
            "type": "string",
            "deprecated": true
          },
          "visibility": {
            "type": "string",
            "deprecated": true
          },
          "scorecard_id": {
            "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
            "description": "Identifier",
            "type": "string"
          },
          "domain": {
            "type": "string",
            "description": "primary domain of the company"
          },
          "source_url": {
            "type": "string"
          },
          "company_name": {
            "type": "string"
          },
          "confidence": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "sub_category": {
            "type": "string"
          },
          "event": {
            "type": "string"
          },
          "event_urls": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "comments": {
            "type": "string"
          },
          "primary_source": {
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}[T ]\\d{2}:\\d{2}:\\d{2}\\.{0,1}[0-9]*Z$",
            "description": "created date"
          }
        }
      }
    },
    "total": {
      "description": "The total number of records matching the given query",
      "type": "integer"
    },
    "size": {
      "description": "The number of records to be returned per page",
      "type": "integer"
    }
  },
  "required": [
    "entries",
    "total"
  ]
}