Google Console API - Restart

 fetch('https://XXX-partner.saviyntcloud.com/ECM/savRoles/applicationrestart', {

    method: 'POST',

    headers: {

        'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',

        'Authorization': 'Bearer YOUR_ACCESS_TOKEN',

        'X-Requested-With': 'XMLHttpRequest'

    },

    body: new URLSearchParams({

        'param1': 'value1',

        'param2': 'value2' // Add your form data here

    })

})

.then(response => response.text()) // Use .json() if the response is JSON

.then(data => console.log(data))

.catch(error => console.error('Error:', error));


Comments

Popular posts from this blog

Enhanced Query - To Update Account Status and Name

Connection Config - STATUS_THRESHOLD_CONFIG

Email variables _ Register User