Update Existing Broadcast Campaign Webhook

Ashley Parks -

PUT /api/v2/lists/:list_id/webhooks/:id

Parameters

NameDescription
webhook[callback_url] Callback URL
webhook[subscribe] Should notify 'subscribe' events?
webhook[unsubscribe] Should notify 'unsubscribe' events?
webhook[message_sent] Should notify 'message_sent' events?

Request

Headers

Accept: application/json
Content-Type: application/json
Authorization: Basic dGF0YW5nbzp0YXRhbmdvX2tleV9kY0U4UEtjb3R3c1N6RHBJY3ktM0ln

Host: example.org
Cookie: 

Route

PUT /api/v2/lists/1/webhooks/1

Body

{"webhook":{"callback_url":"http://mynewapi.com/?ref=tatango","subscribe":true,"unsubscribe":false,"message_sent":false}}

cURL

curl "https://app.tatango.com/api/v2/lists/1/webhooks/1" -d '{"webhook":{"callback_url":"http://mynewapi.com/?ref=tatango","subscribe":true,"unsubscribe":false,"message_sent":false}}' -X PUT \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-u tatango:tatango_key_dcE8PKcotwsSzDpIcy-3Ig \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json; charset=utf-8
X-Meta-Request-Version: 0.2.6
Content-Security-Policy: default-src https: 'self'; connect-src http: https: 'self' wss://*.intercom.io; img-src https: 'self'; script-src 'self' *.intercom.io *.intercomcdn.com 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; report-uri /uri-directive
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Permitted-Cross-Domain-Policies: none
X-XSS-Protection: 1; mode=block
X-UA-Compatible: IE=Edge,chrome=1
ETag: "808585ba8eaa7651ed703e76c5c31c1f"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 422a2fb2455ca51351a82be3e24407e7
X-Runtime: 0.013866
Set-Cookie: __profilin=p%3Dt; path=/
Content-Length: 264

Status

200 OK

Body

{"status":"Webhook updated","webhook":{"callback_url":"http://mynewapi.com/?ref=tatango","created_at":"2016-08-04T16:43:28-07:00","enabled":true,"id":1,"list_id":1,"message_sent":false,"subscribe":true,"unsubscribe":false,"updated_at":"2016-08-04T16:43:28-07:00"}}
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.