{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-automation/json-schema/microsoft-azure-automation-webhook-create-or-update-parameters-schema.json",
  "title": "WebhookCreateOrUpdateParameters",
  "description": "The parameters supplied to the create or update webhook operation.",
  "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/WebhookCreateOrUpdateParameters",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Gets or sets the name of the webhook."
    },
    "properties": {
      "$ref": "#/$defs/WebhookCreateOrUpdateProperties",
      "description": "Gets or sets the properties of the webhook.",
      "x-ms-client-flatten": true
    }
  },
  "required": [
    "name",
    "properties"
  ],
  "$defs": {
    "RunbookAssociationProperty": {
      "type": "object",
      "description": "The runbook property associated with the entity.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Gets or sets the name of the runbook."
        }
      }
    },
    "WebhookCreateOrUpdateProperties": {
      "type": "object",
      "description": "The properties of the create webhook operation.",
      "properties": {
        "isEnabled": {
          "type": "boolean",
          "description": "Gets or sets the value of the enabled flag of webhook."
        },
        "uri": {
          "type": "string",
          "description": "Gets or sets the uri."
        },
        "expiryTime": {
          "type": "string",
          "format": "date-time",
          "description": "Gets or sets the expiry time."
        },
        "parameters": {
          "type": "object",
          "description": "Gets or sets the parameters of the job.",
          "additionalProperties": {
            "type": "string"
          }
        },
        "runbook": {
          "$ref": "#/$defs/RunbookAssociationProperty",
          "description": "Gets or sets the runbook."
        },
        "runOn": {
          "type": "string",
          "description": "Gets or sets the name of the hybrid worker group the webhook job will run on."
        }
      }
    }
  }
}