{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/elation-health/main/json-schema/elation-health-message-thread-schema.json", "title": "MessageThread", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/elation-health-messaging-api-openapi.yml#/components/schemas/MessageThread", "allOf": [ { "$ref": "#/$defs/MessageThreadCreate" }, { "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "created_date": { "type": "string", "format": "date-time", "readOnly": true }, "last_modified": { "type": "string", "format": "date-time", "readOnly": true }, "deleted_date": { "type": [ "string", "null" ], "format": "date-time", "readOnly": true } } } ], "$defs": { "MessageThreadCreate": { "type": "object", "required": [ "subject" ], "properties": { "subject": { "type": "string", "description": "Thread subject" }, "members": { "type": "array", "items": { "type": "integer" }, "description": "User IDs of thread members" }, "patient": { "type": [ "integer", "null" ], "description": "Associated patient ID" }, "note": { "type": "string", "description": "Initial message content" } } } } }