Put method return 200 but doens´t change the endpoint

Hi,

I isolated the code here to show my issue. I´m doing a simples request to API with PUT method on Node.

const axios = require("axios");

async function updateCount() {
  const url = `http://144.22.167.20:1337/api/contos/5`;

  try {
    const response = await axios({
      method: "PUT",
      url: url,
      headers: {
        "Content-Type": "application/json",
      },
      data: {
        data: {
          attributes: {
            Count: 7,
          },
        },
      },
    });
  } catch (error) {
    console.error("Error in PUT request:", error);
  }

  console.log("PUT request completed");
}

updateCount();

And it will return a regular 200, but when i look on API or do a GET, the value doesn´t change.

I did the authorization on the Strapi to Public users (all)

Any tips?

This topic has been created from a Discord post (1225926403359244308) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord