{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/upvest/refs/heads/main/json-schema/investment-api-portfolio-schema.json", "title": "Portfolio", "description": "A portfolio with defined target allocations across instruments.", "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "description": "The unique identifier of the portfolio.", "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890" }, "account_id": { "type": "string", "format": "uuid", "description": "The account this portfolio belongs to.", "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890" }, "name": { "type": "string", "description": "The portfolio name.", "example": "Example Name" }, "status": { "type": "string", "enum": [ "ACTIVE", "CLOSED" ], "description": "The portfolio status.", "example": "ACTIVE" }, "created_at": { "type": "string", "format": "date-time", "description": "When the portfolio was created.", "example": "2025-03-15T14:30:00Z" }, "updated_at": { "type": "string", "format": "date-time", "description": "When the portfolio was last updated.", "example": "2025-03-15T14:30:00Z" } } }