{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-devops/json-schema/microsoft-azure-devops-subscription-create-request-schema.json",
  "title": "SubscriptionCreateRequest",
  "description": "Request body for creating or updating a service hook subscription",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-devops-notifications-api-openapi.yml#/components/schemas/SubscriptionCreateRequest",
  "type": "object",
  "required": [
    "publisherId",
    "eventType",
    "consumerId",
    "consumerActionId",
    "publisherInputs",
    "consumerInputs"
  ],
  "properties": {
    "publisherId": {
      "type": "string",
      "description": "Publisher ID for the event source"
    },
    "eventType": {
      "type": "string",
      "description": "Event type to subscribe to"
    },
    "resourceVersion": {
      "type": "string",
      "description": "Version of the event resource schema to use",
      "default": "1.0"
    },
    "consumerId": {
      "type": "string",
      "description": "Consumer ID for the notification target"
    },
    "consumerActionId": {
      "type": "string",
      "description": "Action ID within the consumer"
    },
    "publisherInputs": {
      "type": "object",
      "description": "Filter inputs controlling which events trigger a notification",
      "additionalProperties": {
        "type": "string"
      }
    },
    "consumerInputs": {
      "type": "object",
      "description": "Configuration for the consumer endpoint",
      "additionalProperties": {
        "type": "string"
      }
    }
  }
}