I am trying to create and update a Webhook using the v3 API. I can create the entry, but it doesn’t allow me to set any of the parameters (like base_url
or format
):
For example:
PUT /api/v3/as/webhooks/ctron-drogue-1/drogue-iot HTTP/1.1
Accept: application/json, */*;q=0.5
Accept-Encoding: gzip, deflate
Authorization: Bearer XXX
Connection: keep-alive
Content-Length: 83
Content-Type: application/json
Host: eu1.cloud.thethings.network
User-Agent: HTTPie/2.3.0
{
"webhook": {
"base_url": "https://http.sandbox.drogue.cloud",
"format": "json"
}
}
HTTP/1.1 200 OK
content-length: 181
content-type: application/json
date: Fri, 16 Apr 2021 16:38:53 GMT
referrer-policy: strict-origin-when-cross-origin
server: envoy
x-content-type-options: nosniff
x-envoy-upstream-service-time: 90
x-frame-options: SAMEORIGIN
x-request-id: 90d7cf53-236b-4358-a5f5-866bd472512e
x-xss-protection: 1; mode=block
{
"created_at": "2021-04-16T16:32:46.378962057Z",
"ids": {
"application_ids": {
"application_id": "ctron-drogue-1"
},
"webhook_id": "drogue-iot"
},
"updated_at": "2021-04-16T16:32:46.378962057Z"
}
I tried various combinations, but nothing works. Interestingly is does create the entry initially, but also without the provided information.