Skip to content

updateItemCost

WRITE

Update item cost.

POST /api/v1/items/updateItemCost
curl -X POST '<your-host>/api/v1/items/updateItemCost' \
  -H 'Authorization: Bearer <api-key>' \
  -H 'Content-Type: application/json' \
  -d '{
    "itemId": "string",
    "cost": {}
  }'

Parameters

ParameterType

Input schema

schema
{
  "type": "object",
  "properties": {
    "itemId": {
      "type": "string"
    },
    "cost": {
      "type": "object",
      "properties": {
        "unitCost": {
          "type": "number"
        }
      },
      "required": [
        "unitCost"
      ]
    }
  },
  "required": [
    "itemId",
    "cost"
  ]
}