Contractors.es icon

Contractors.es

Interact with Contractors.es API

Actions995

Inventory Usage Relation Api → Post Api Assets Inventory Inventory Usages Batch Restore

AI-generated

Summary

Restore multiple inventory usage records in batch for a specified inventory by sending the corresponding data to the Contractors.es API.

Inputs

  • Inventory (required) — The identifier of the inventory for which inventory usage records will be restored in batch.
  • Resources — A JSON array of inventory usage objects to restore. If this field contains the sentinel 'DO_NOT_SET', it will be omitted from the request body.
  • Request Options — Optional settings such as batching controls, SSL certificate validation override, proxy configuration, and request timeout to customize the HTTP request behavior.

Output shape

a single response object containing the result of the batch restore operation, as returned by the Contractors.es API.

The 'Resources' input is sent in the request body unless it contains the sentinel value 'DO_NOT_SET'. Batching can be enabled to throttle requests when processing multiple items. The output reflects the API's response to the batch restore request.

Examples

Example 1: Restore multiple inventory usage records for inventory ID 12345 with a batch of resource objects.

Set 'Inventory' to 12345, provide a JSON array in 'Resources' representing the usage records to restore, optionally enable batching through 'Request Options' to control request load.

Links

Discussion