{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/commareports-com/json-schema/commareports-com-notification-create-request-schema.json",
  "title": "NotificationCreateRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/commareports-com-notifications-api-openapi.yml#/components/schemas/NotificationCreateRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 200,
      "description": "Defaults to 'Untitled notification'."
    },
    "report_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "Scope to one report (must be viewable) or null for all."
    },
    "webhook_url": {
      "type": "string",
      "format": "uri",
      "maxLength": 2048,
      "description": "http(s) only."
    },
    "signing_secret": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 1024,
      "description": "Enables HMAC-signed deliveries. Encrypted at rest; never returned."
    },
    "events": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "revision.created",
          "comment.created",
          "comment.mentioned",
          "signoff.submitted"
        ]
      },
      "description": "Defaults to all four event types."
    },
    "format": {
      "type": "string",
      "enum": [
        "slack",
        "discord",
        "plain"
      ],
      "default": "slack"
    }
  },
  "required": [
    "webhook_url"
  ]
}