anon_post_physical_items_item_id_log
Records stock quantity adjustments or status changes for a physical item, ensuring deltas are integer, results non-negative, and statuses valid while logging each update.
Instructions
记录物资数量变动。需 materials:manage 权限。数量类变动(adjust_on_hand/adjust_used/adjust_lost)的 delta 须为整数且结果不能为负;status_change 须带合法 status。每次成功记录一条日志(status_change 日志的 status 字段记录目标状态)。 POST /api/projects/{id}/physical/items/{itemId}/log 项目由当前 API 密钥自动确定,无需传 projectId。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| path | Yes |