Add a webhook
documentedRegister a new webhook URL for Deputy events.
POST /api/v1/resource/WebhookWebhooksno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://{{$install}}.{{$geo}}.deputy.com/api/v1/resource/Webhook" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"Topic": "{{$topic}}", "Enabled": {{$enabled}}, "Type": "URL", "Address": "{{$webhook_url}}", "Filter": {"OperationalUnit": "{{$operational_unit}}"}}'