How to use the method through scripting apps?

Asked

Viewed 15 times

-2

I’m trying to make a change to the API through the put method however it doesn’t seem to be working as it doesn’t change the API, I don’t know but what to test, I exhausted my knowledge.

Follows the code

var params = {
    method:"PUT",
    headers:headers,
    body:{
            "PrecoVenda":12.44,
            "PrecoCusto":1.63,
        },
    
    muteHttpExceptions : true,
};

var response = UrlFetchApp.fetch(url, params);

Returns no error, it makes the request but does not make the change.

Any help will be welcome.

  • is missing important information in your question, for example where is the code of your API, where is the URL that you are doing the PUT, what is inside that Urlfetchapp? Try to update your question with this information so we can have better help.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.