{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/security-scorecard/json-schema/security-scorecard-portfolio-create-schema.json",
  "title": "PortfolioCreate",
  "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/PortfolioCreate",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "name": {
      "type": "string",
      "description": "human-readable name"
    },
    "description": {
      "type": "string",
      "description": "human-readable 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"
      ]
    },
    "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"
    }
  },
  "required": [
    "name"
  ]
}