webhooks
Create a webhook event schema
Changed onCreates a custom GraphQL schema for one webhook event namespace. For supported business events, the schema is a root-level Business selection set. See Customize webhook payloads for general guidance. For agent-specific event behavior, see Agent webhook events.
post/v1/webhooks/{webhook_id}/event_schemas
Request
- Base URLhttps://api.middesk.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
webhook_idstring required
Webhook ID
Request body
Response
webhook event schema created
Changes
- warning
deleted the
headerrequest parameterAuthorization - info
the endpoint scheme security
bearer_authwas added to the API
- warning
- info
api operation id
createWebhookEventSchemaremoved and replaced withwebhooks_createWebhookEventSchema
- info