{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/duve/main/json-schema/duve-post-api-openapi-v1-webhooks-request-schema.json",
  "title": "PostApiOpenapiV1WebhooksRequest",
  "x-generated": "2026-10-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/duve-openapi-generated.yml#/components/schemas/PostApiOpenapiV1WebhooksRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "event": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "conditions": {
      "type": "array",
      "description": "list of WebhookCondition"
    },
    "dataPoints": {
      "type": "array",
      "description": "list of string"
    },
    "isEnabled": {
      "type": "boolean",
      "description": "default: true"
    },
    "headers": {
      "type": "array",
      "description": "list of WebhookHeader"
    },
    "brands": {
      "type": "array",
      "description": "list of string (Brand ids)"
    },
    "valueNameToCompare": {
      "type": "string"
    },
    "notifyOnWebhookFailures": {
      "type": "boolean"
    },
    "failureNotificationEmails": {
      "type": "array",
      "description": "list of string"
    }
  },
  "required": [
    "name",
    "event",
    "url"
  ]
}