zorkian / go-datadog-api

A Go implementation of the Datadog API.
BSD 3-Clause "New" or "Revised" License
183 stars 156 forks source link

As documentation states, PUT has to be used to create the PD integration #248

Closed bkabrda closed 5 years ago

bkabrda commented 5 years ago

Using POST (the previous state) makes the operation fail sometimes with 405 error, see e.g. https://github.com/terraform-providers/terraform-provider-datadog/issues/160

See https://docs.datadoghq.com/api/?lang=bash#create-a-pagerduty-integration for documentation of this endpoint - PUT is really the suggested verb to use to create the integration.

bkabrda commented 5 years ago

Thanks for the review, merging.