{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sudomock-com/json-schema/sudomock-com-webhook-endpoint-update-request-schema.json",
  "title": "WebhookEndpointUpdateRequest",
  "description": "Partial update. Any subset of fields; all optional.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sudomock-com-webhook-endpoints-api-openapi.yml#/components/schemas/WebhookEndpointUpdateRequest",
  "properties": {
    "url": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2048,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "description": "New https URL that receives this endpoint's events."
    },
    "description": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255
        },
        {
          "type": "null"
        }
      ],
      "description": "New label for this endpoint."
    },
    "event_types": {
      "anyOf": [
        {
          "items": {
            "type": "string",
            "enum": [
              "render.succeeded",
              "render.failed",
              "upload.succeeded",
              "video.succeeded",
              "video.failed",
              "2d_mockup.ready",
              "2d_mockup.rejected",
              "2d_mockup.failed",
              "2d_render.succeeded",
              "2d_render.failed",
              "photo_mockup.ready",
              "photo_mockup.rejected",
              "photo_mockup.failed",
              "photo_mockup_render.succeeded",
              "photo_mockup_render.failed",
              "webhook.test"
            ]
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "description": "New list of event types for this endpoint; leave it empty to receive every event."
    },
    "enabled": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "description": "Set to false to pause deliveries, or true to resume them."
    },
    "event_naming": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "legacy",
            "current"
          ]
        },
        {
          "type": "null"
        }
      ],
      "description": "Re-pin the endpoint to 'current' or 'legacy' event names once its handler is ready for them."
    }
  },
  "type": "object"
}