solved the issue.
So it will return null if it cant create a webhook because the challenge that was posted to your url was not returned.
So when doing a the call
mutation {
create_webhook(board_id: 123123123123,
url: "https://some.domain.com/api/v1/webhooks/dapulse/receive",
event: change_column_value){
id board_id
}
}
this endpoint will receive a POST request with
{
"challenge":"RANDOM_CODE"
}
if you dont return the same json, you will see null as seen above.
But if you do return the same json the request will succeed.
{
"data": {
"create_webhook": {
"id": "123123123123",
"board_id": 123123
}
},
"account_id": 123123
}```