Update Webhook Details

You can also update your webhook_url`` and webhook_secret_key``` by parsing the new values in the request body as seen in the example below

Example

var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
  'webhook_url': 'https://webhook.site/b577d72f-d41b-4eb6-b766-324dc34775c5',
  'webhook_secret_key': '1828393930293094938' 
});
var config = {
  method: 'post',
  url: 'https://integrations.getravenbank.com/v1/webhooks/update',
  headers: { },
  data : data
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
{
  "status": "success",
  "message": "Webhook updated successfully",
  "data": {
    "webhook_url": "https://webhook.site/b577d72f-d41b-4eb6-b766-324dc34775c5",
    "webhook_secret_key": "1828393930293094938"
  }
}
👍

Try it in the console

Click here to try it