VoidhashDocs
DocumentationAPI reference
Dashboard
Essentials
API overview
Authentication
Endpoints
Analytics
Api_keys
Auth
Component_dev_sessions
Component_registry
Components
Development
Events
Experiments
Feature_flag_overrides
Feature_flag_targets
Feature_flags
Ingest_policy
Notification_sends
Notifications
Organizations
Payment_provider_configurations
Payment_provider_products
Paywall_locations
Paywalls
Perks
Persons
Products
Projects
Push_notification_configurations
Schema
Sdk
Users
Webhooks
Analytics
Event capture
Get Ingest Policy
Set Builtin Event Admission
Set Custom Event Blocked

Set Custom Event Blocked

PUT
/api/v1/ingest-policy/custom-events/{eventName}

Path Parameters

eventName*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

blocked*boolean
projectId?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/api/v1/ingest-policy/custom-events/string" \  -H "Content-Type: application/json" \  -d '{    "blocked": true  }'
{  "builtinEvents": [    {      "defaultEnabled": true,      "description": "string",      "enabled": true,      "eventNames": [        "string"      ],      "key": "string",      "name": "string",      "override": true,      "warning": "string"    }  ],  "customEventBlocklist": [    "string"  ]}
{  "_tag": "Api/EventAdmissionError",  "message": "string"}
{  "_tag": "Api/AuthenticationError",  "cause": "string",  "message": "string"}
{  "_tag": "Api/ActionForbiddenError",  "message": "string"}
{  "_tag": "Api/AuthServiceError",  "cause": "string",  "message": "string"}
PreviousSet Builtin Event AdmissionNextList Notification Sends