{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/portainer/main/json-schema/portainer-portainer-webhook-schema.json",
  "title": "portainer.Webhook",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/portainer-webhooks-api-openapi.yml#/components/schemas/portainer.Webhook",
  "properties": {
    "EndpointId": {
      "type": "integer"
    },
    "Id": {
      "description": "Webhook Identifier",
      "type": "integer"
    },
    "RegistryId": {
      "type": "integer"
    },
    "ResourceId": {
      "type": "string"
    },
    "Token": {
      "type": "string"
    },
    "Type": {
      "allOf": [
        {
          "$ref": "#/$defs/portainer.WebhookType"
        }
      ],
      "description": "Type of webhook (1 - service)"
    }
  },
  "type": "object",
  "$defs": {
    "portainer.WebhookType": {
      "enum": [
        0,
        1
      ],
      "type": "integer",
      "x-enum-varnames": [
        "_",
        "ServiceWebhook"
      ]
    }
  }
}