Customer Portal
Notifications
Update a notification
1min
code examples curl location request put 'https //app amberflo io/customer portal/notification' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "id" "", "name" "too many api calls" }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "id" "", "name" "too many api calls" }); var requestoptions = { method 'put', headers myheaders, body raw, redirect 'follow' }; fetch("https //app amberflo io/customer portal/notification", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //app amberflo io/customer portal/notification") https = net http new(url host, url port) https use ssl = true request = net http put new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "id" "", "name" "too many api calls" }) response = https request(request) puts response read body import requests import json url = "https //app amberflo io/customer portal/notification" payload = json dumps({ "id" "", "name" "too many api calls" }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("put", url, headers=headers, data=payload) print(response text) responses // successful response { "id" "", "name" "", "description" "", "notificationtype" "", "meterid" "", "cron" "", "frequency" "", "webhookurl" "", "webhookheaders" "", "webhookpayload" "", "email" \[ "" ], "customsubject" "", "thresholdcondition" "", "thresholdvalue" 0, "range" "", "productplanid" "", "enabled" false, "createtime" 0, "updatetime" 0 }