Create webhook
documentedCreate a webhook for a space.
POST /spaces/{space_id}/webhooksWebhooksno 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://api.contentful.com/spaces/{{$space_id}}/webhook_definitions" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/vnd.contentful.management.v1+json" \
-H "Accept: application/json" \
-d '{"name": "{{$name}}", "url": "{{$url}}", "topics": ["ContentManagement.Entry.publish"], "filters": [ {"equals": [ {"doc": "sys.environment.sys.id"}, "{{$environment_id}}" ] } ], "headers": [ { "key": "X-Notify", "value": "{{$notify_value}}" } ] }'