{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/upvest/refs/heads/main/json-schema/investment-api-user-create-schema.json", "title": "UserCreate", "description": "Request body for creating a new user.", "type": "object", "properties": { "first_name": { "type": "string", "description": "The user's first name.", "example": "Example Name" }, "last_name": { "type": "string", "description": "The user's last name.", "example": "Example Name" }, "email": { "type": "string", "format": "email", "description": "The user's email address.", "example": "user@example.com" }, "date_of_birth": { "type": "string", "format": "date", "description": "The user's date of birth.", "example": "2025-03-15" }, "nationality": { "type": "string", "description": "The user's nationality as an ISO 3166-1 alpha-2 country code.", "pattern": "^[A-Z]{2}$", "example": "DE" }, "address": { "type": "object", "description": "A postal address.", "required": [ "street", "city", "postal_code", "country" ], "properties": { "street": { "type": "string", "description": "The street name and number.", "example": "Example Street 1" }, "additional_line": { "type": "string", "description": "Additional address line.", "example": "example-value" }, "city": { "type": "string", "description": "The city name.", "example": "Berlin" }, "postal_code": { "type": "string", "description": "The postal or ZIP code.", "example": "10115" }, "state": { "type": "string", "description": "The state or province.", "example": "BE" }, "country": { "type": "string", "description": "The country as an ISO 3166-1 alpha-2 code.", "pattern": "^[A-Z]{2}$", "example": "DE" } } } }, "required": [ "first_name", "last_name", "email", "date_of_birth", "nationality", "address" ] }