Contractors.es icon

Contractors.es

Interact with Contractors.es API

Actions995

Inventory Stocktaking Row Relation Api → Patch Api Assets Inventory Stocktakings Inventory Stocktaking Rows Batch

AI-generated

Summary

Update multiple inventory stocktaking rows within a specified inventory stocktaking record in batch by sending partial modifications.

Inputs

  • inventory_stocktaking (required) — Numeric ID of the inventory stocktaking record whose rows you want to update. This identifies the parent inventory stocktaking under which the rows will be patched.
  • resources — A JSON array representing the batch of inventory stocktaking rows to patch. Each item contains the partial data updates for individual rows. Use the sentinel value "DO_NOT_UPDATE" to skip updating fields within objects.
  • requestOptions — Optional request configuration including batching options to split input into batches for throttling, SSL ignore settings, proxy configuration, and HTTP timeout.

Output shape

The operation returns the API response containing the results of the batch patch request. The exact response shape depends on the Contractors.es API but typically includes the updated inventory stocktaking rows.

Input data in 'resources' is parsed from JSON; fields set to 'DO_NOT_UPDATE' will not be changed. Batching splits multiple requests based on 'batchSize' and 'batchInterval' if enabled. Failure or partial failure responses depend on the API. Requires authentication credentials for Contractors.es API.

Examples

Example 1: Batch update multiple stocktaking rows of a specific inventory stocktaking ID with partial data changes.

Set 'inventory_stocktaking' to the targeted stocktaking ID, provide a JSON array of update objects in 'resources', and optionally configure batching and other request options.

Links

Discussion