Sanity · Schema

WebhookInput

Headless CMSContent ManagementGROQReal-TimeStructured ContentDeveloper Platform

Properties

Name Type Description
name string
url string
dataset string
filter string
projection string
true array
secret string
View JSON Schema on GitHub

JSON Schema

sanity-webhookinput-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/WebhookInput",
  "title": "WebhookInput",
  "type": "object",
  "required": [
    "name",
    "url",
    "dataset",
    true
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "dataset": {
      "type": "string"
    },
    "filter": {
      "type": "string"
    },
    "projection": {
      "type": "string"
    },
    "true": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "create",
          "update",
          "delete"
        ]
      }
    },
    "secret": {
      "type": "string"
    }
  }
}