Contractors.es icon

Contractors.es

Interact with Contractors.es API

Actions995

Inventory Purchase Row Relation Api → Post Api Assets Inventory Purchases Inventory Purchase Rows Batch Restore

AI-generated

Summary

Sends a batch request to restore one or more inventory purchase rows in Contractors.es.

Inputs

  • inventory_purchase (required) — The ID of the inventory purchase containing the rows to restore.
  • resources — A JSON array of resources (inventory purchase rows) to restore. Special values 'DO_NOT_SET' or 'DO_NOT_UPDATE' are ignored.
  • requestOptions — Advanced options including batching (size/interval), proxy, timeout, and SSL settings.

Output shape

one item per successful batch restore

The response depends on the Contractors.es API endpoint; typically returns updated row data or success status.

Examples

Example 1: Restore a single row

Set 'inventory_purchase' to the purchase ID and provide the row resource ID in the 'resources' JSON field.

Example 2: Restore multiple rows in batches

Use 'requestOptions' with 'batching' enabled to split the 'resources' array into chunks of 50 items, waiting 1 second between batches.

Links

Discussion