API - Inventory_items PUT error message

Topic summary

Issue: Attempting to update an inventory item’s cost via a PUT request returns “Required parameter missing or invalid.”

  • Request used: PUT to /admin/api/2024-04/inventory_items/42956524683431.json?cost=123.55.
  • Observation: A GET request to the same endpoint works, confirming the item ID and endpoint are reachable.

Context:

  • PUT is intended to update a resource; the user is trying to change the “cost” field of an inventory item.
  • Error indicates the API expects a parameter that is missing or improperly formatted, but no further details are provided.

Status:

  • No solution or workaround has been provided in the thread.
  • Open question: What is the correct method/parameters required to update the cost for inventory_items via the API?

Resolution: None yet; discussion remains open.

Summarized with AI on December 24. AI used: gpt-5.

I am trying to update the cost of items using the PUT API.

myshopify.com/admin/api/2024-04/inventory_items/42956524683431.json?cost=123.55

But I get the error Required parameter missing or invalid.

The GET with this URL works fine.