Webhook data returns wrong siteId
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 84
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
Description
We use craft CMS as a headless CMS and the GraphQL api to get the content. With the Webhook plugin we send webhooks to the application to clear the cache and get the new content from Craft CMS. When a single type is saved the webhook plugins sends a request with the wrong siteId. We have different sites with the same single names.
Steps to reproduce
- Create multiple sites with the same single handel (Home)
- Save the single entry
- Webhook plugins sends a request with another sites id
Saved from default site

Webhook data

GraphQL data

Additional info
- Craft CMS version: 3.7.24
- Webhooks version: 2.4.1
- PHP version: 8.0.15
- Database driver & version: MySQL 5.5.5
- Plugins & versions:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are named. Reproduce the case with multiple sites sharing the same single handle, then compare the saved site's ID with the webhook and GraphQL data; it is done when the webhook reports the ID of the site where the single was saved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, php
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100