Set inventory_levels by REST Admin API 404 response

When I updated the inventory, the API returned the message :

x-request-id : 0dc73f1e-5b7d-49d4-a13f-f75edfe7c879-1720685795.

I understood that the product was not found in this inventory location, but I was able to find the information of this product.

I want to know if there is a problem with my API call or the API itself. I tried the 2024-07 and 2023-07 versions of the API. Thank you everyone.

I found the problem. The api address is different from the myshopify_domain value in the /admin/api/2024-07/shop.json interface. When posting the interface, it will redirect to the myshopify_domain address.

clarelv_0-1720689762069.png