function test_create_patient(){
var options = {};
options.headers = {Authorization: 'Bearer ' + getOAuthService().getAccessToken()};
options.method = 'POST';
options.payload = JSON.stringify({'gender': "Male",'doctor': 355753, 'first_name': 'Test', 'last_name': 'API'});
const response = UrlFetchApp.fetch(url, options);
Logger.log(JSON.parse(response))
}
Can anyone help me figure out why this is happening? Thanks in advance!