{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/elation-health/main/json-schema/elation-health-subscription-schema.json",
  "title": "Subscription",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elation-health-event-subscriptions-api-openapi.yml#/components/schemas/Subscription",
  "properties": {
    "created_date": {
      "format": "date-time",
      "readOnly": true,
      "type": "string"
    },
    "deleted_date": {
      "format": "date-time",
      "readOnly": true,
      "type": [
        "string",
        "null"
      ]
    },
    "id": {
      "readOnly": true,
      "type": "integer"
    },
    "properties": {
      "description": "Properties specific to this subscription.",
      "oneOf": [
        {},
        {
          "type": "null"
        }
      ]
    },
    "resource": {
      "description": "The resource name.",
      "maxLength": 50,
      "type": "string"
    },
    "signing_pub_key": {
      "readOnly": true,
      "type": "string"
    },
    "target": {
      "description": "Target URL where we would send the POST request on new events.",
      "format": "uri",
      "type": "string"
    }
  },
  "required": [
    "resource",
    "target"
  ],
  "type": "object"
}