suer / redmine_webhook

147 stars 81 forks source link

Can't create webhook using API #49

Open OctoNezd opened 1 year ago

OctoNezd commented 1 year ago

I tried creating webhook by making request to post 'projects/:id/webhook_settings/create', :controller => 'webhook_settings', :action => 'create', :as => :create_webhook. API key is set using X-Redmine-API-Key header. Redmine throws Invalid form authenticity token.. Is there any proper API for that?

OctoNezd commented 1 year ago

Nevermind - managed to get it to work by adding .json to create. However, the returned result is HTML, not json. I assume its a bug?