{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/webhook-ping",
"title": "webhook-ping",
"type": "object",
"properties": {
"hook": {
"title": "Webhook",
"description": "The webhook that is being pinged",
"type": "object",
"properties": {
"active": {
"description": "Determines whether the hook is actually triggered for the events it subscribes to.",
"type": "boolean"
},
"app_id": {
"description": "Only included for GitHub Apps. When you register a new GitHub App, GitHub sends a ping event to the webhook URL you specified during registration. The GitHub App ID sent in this field is required for authenticating an app.",
"type": "integer"
},
"config": {
"type": "object",
"properties": {
"content_type": {
"$ref": "#/components/schemas/webhook-config-content-type"
},
"insecure_ssl": {
"$ref": "#/components/schemas/webhook-config-insecure-ssl"
},
"secret": {
"$ref": "#/components/schemas/webhook-config-secret"
},
"url": {
"$ref": "#/components/schemas/webhook-config-url"
}
}
},
"created_at": {
"type": "string",
"format": "date-time"
},
"deliveries_url": {
"type": "string",
"format": "uri"
},
"events": {
"description": "Determines what events the hook is triggered for. Default: ['push'].",
"type": "array",
"items": {
"type": "string"
}
},
"id": {
"description": "Unique identifier of the webhook.",
"type": "integer"
},
"last_response": {
"$ref": "#/components/schemas/hook-response"
},
"name": {
"description": "The type of webhook. The only valid value is 'web'.",
"type": "string",
"enum": [
"web"
]
},
"ping_url": {
"type": "string",
"format": "uri"
},
"test_url": {
"type": "string",
"format": "uri"
},
"type": {
"type": "string"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"url": {
"type": "string",
"format": "uri"
}
},
"required": [
"id",
"type",
"name",
"active",
"events",
"config",
"created_at",
"updated_at"
]
},
"hook_id": {
"description": "The ID of the webhook that triggered the ping.",
"type": "integer"
},
"organization": {
"$ref": "#/components/schemas/organization-simple-webhooks"
},
"repository": {
"$ref": "#/components/schemas/repository-webhooks"
},
"sender": {
"$ref": "#/components/schemas/simple-user-webhooks"
},
"zen": {
"description": "Random string of GitHub zen.",
"type": "string"
}
}
}