I got a timeout error after 1 min. from the below code. Can I set a timeout value?
function apiPost(token, url, body) {
var response = UrlFetchApp.fetch(url, {
method: 'post',
contentType: 'application/json',
headers: {
'Authorization': token
},
payload: JSON.stringify(body)
});
return JSON.parse(response.getContentText());
}