{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/openai/main/json-schema/openai-public-update-endpoint-body-schema.json",
  "title": "PublicUpdateEndpointBody",
  "x-generated": "2026-09-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/openai-webhook-endpoints-api-openapi.yml#/components/schemas/PublicUpdateEndpointBody",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 256,
      "minLength": 1,
      "description": "A new human-readable name for the webhook endpoint."
    },
    "url": {
      "type": "string",
      "maxLength": 2048,
      "pattern": "^https://",
      "description": "A new HTTPS URL that receives webhook deliveries."
    },
    "event_types": {
      "items": {
        "$ref": "#/$defs/ProjectEventTypeEnum"
      },
      "type": "array",
      "minItems": 1,
      "description": "The complete set of event types that should trigger deliveries."
    }
  },
  "type": "object",
  "required": [],
  "$defs": {
    "ProjectEventTypeEnum": {
      "type": "string",
      "enum": [
        "batch.completed",
        "batch.failed",
        "batch.expired",
        "batch.cancelled",
        "response.completed",
        "response.failed",
        "response.cancelled",
        "response.incomplete",
        "eval.run.succeeded",
        "eval.run.failed",
        "eval.run.canceled",
        "fine_tuning.job.succeeded",
        "fine_tuning.job.failed",
        "fine_tuning.job.cancelled",
        "realtime.call.incoming",
        "video.completed",
        "video.failed",
        "safety.alert.created"
      ]
    }
  }
}