{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-automation/json-schema/microsoft-azure-automation-webhook-schema.json",
  "title": "Webhook",
  "description": "Definition of the webhook type.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-automation-webhook-api-openapi.yml#/components/schemas/Webhook",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/WebhookProperties",
      "description": "Gets or sets the webhook properties.",
      "x-ms-client-flatten": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "Resource": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "RunbookAssociationProperty": {
      "type": "object",
      "description": "The runbook property associated with the entity.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Gets or sets the name of the runbook."
        }
      }
    },
    "WebhookProperties": {
      "type": "object",
      "description": "Definition of the webhook properties",
      "properties": {
        "isEnabled": {
          "type": "boolean",
          "description": "Gets or sets the value of the enabled flag of the webhook."
        },
        "uri": {
          "type": "string",
          "description": "Gets or sets the webhook uri."
        },
        "expiryTime": {
          "type": "string",
          "format": "date-time",
          "description": "Gets or sets the expiry time."
        },
        "lastInvokedTime": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Gets or sets the last invoked time."
        },
        "parameters": {
          "type": "object",
          "description": "Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with.",
          "additionalProperties": {
            "type": "string"
          }
        },
        "runbook": {
          "$ref": "#/$defs/RunbookAssociationProperty",
          "description": "Gets or sets the runbook the webhook is associated with."
        },
        "runOn": {
          "type": "string",
          "description": "Gets or sets the name of the hybrid worker group the webhook job will run on."
        },
        "creationTime": {
          "type": "string",
          "format": "date-time",
          "description": "Gets or sets the creation time."
        },
        "lastModifiedTime": {
          "type": "string",
          "format": "date-time",
          "description": "Gets or sets the last modified time."
        },
        "lastModifiedBy": {
          "type": "string",
          "description": "Details of the user who last modified the Webhook"
        },
        "description": {
          "type": "string",
          "description": "Gets or sets the description."
        }
      }
    }
  }
}