Contractors.es icon

Contractors.es

Interact with Contractors.es API

Actions995

Inventory Usage Relation Api → Patch Api Assets Inventory Inventory Usages Usage

AI-generated

Summary

Update specific fields of an existing inventory usage record within the Contractors.es system by specifying the inventory and usage identifiers and optionally changing related attributes.

Inputs

  • Inventory (required) — The numeric identifier of the inventory to which the usage record belongs.
  • Usage (required) — The numeric identifier of the usage record to update.
  • Inventory Id — The updated string ID for the inventory; set to a specific string to update or leave as default 'DO_NOT_UPDATE' to keep unchanged.
  • Storage Id — The updated string ID for storage location; optional, default disables update.
  • Quantity — The updated quantity value as a string; optional.
  • Record Type — The updated record type with predefined options or default to skip update.
  • Record Id — The updated record identifier; optional.
  • Purchase Id — The updated purchase identifier; optional.
  • Production Id — The updated production identifier; optional.
  • Total Cost — The updated total cost as a string; optional.
  • Total Cost Currency — The updated currency for total cost; optional.
  • External Id — An external identifier to associate; optional.
  • Request Options — Advanced settings such as batching, timeout, proxy, and SSL behavior.

Output shape

a single JSON object representing the updated inventory usage record.

Only fields explicitly set (not defaulting to 'DO_NOT_UPDATE') are sent for update. The operation requires 'inventory' and 'usage' numeric IDs to identify the record. Optional fields can selectively update parts of the usage record. Request options control execution behaviors like batching and timeouts.

Examples

Example 1: Update quantity and total cost of an inventory usage record

Provide inventory and usage IDs as numbers; set 'Quantity' and 'Total Cost' to desired values; leave other fields as DO_NOT_UPDATE.

Links

Discussion