items_upsertItemCost

WRITE

Upsert item cost.

Parameters

itemIdstringrequired
costingMethodnumberrequired
itemPostingGroupIdstringoptional

Call it

Invoke it through the call_tool meta-tool with its arguments:

call_tool
call_tool({
  "name": "items_upsertItemCost",
  "arguments": {
    "itemId": "string",
    "costingMethod": 0
  }
})

Input schema

The raw JSON Schema the tool validates its arguments against.

schema
{
  "type": "object",
  "properties": {
    "itemId": {
      "type": "string"
    },
    "itemPostingGroupId": {
      "type": "string"
    },
    "costingMethod": {
      "type": "number"
    }
  },
  "required": [
    "itemId",
    "costingMethod"
  ]
}