Contractors.es icon

Contractors.es

Interact with Contractors.es API

Actions995

Task Api → Post Api Crm Tasks Batch Restore

AI-generated

Summary

Sends a batch of CRM tasks to Contractors.es for restoration from the trash, with optional batching controls.

Inputs

  • resources — JSON object containing the tasks to restore. The node automatically excludes items marked with DO_NOT_SET or DO_NOT_UPDATE.
  • requestOptions — Optional collection for request settings including batching, SSL/Proxy/Timeout options.
  • requestOptions.batching — Controls how the input items are split into batches. Includes batchSize (items per batch, default 50, -1 to disable) and batchInterval (ms between batches, default 1000, 0 to disable).
  • requestOptions.allowUnauthorizedCerts — If true, accepts the response even if SSL certificate validation fails.
  • requestOptions.proxy — HTTP proxy URL to use for the request (e.g., http://username:password@myproxy:3128).
  • requestOptions.timeout — Time in milliseconds to wait for the server to send response headers before aborting (default 10000).

Output shape

a list of items, each containing the restored task record and the original input item

The node uses a POST request to the CRM Tasks endpoint to restore tasks. The returned items include the API response data merged with the input item.

Examples

Example 1: Restore 100 tasks from the trash, sending them in batches of 20 with a 500ms delay between batches.

Set resources to the JSON array of tasks, requestOptions.batching.batchSize to 20, requestOptions.batching.batchInterval to 500.

Example 2: Restore a single task by sending the task object in the resources field without batching.

Set resources to the JSON object of the task to restore, leave requestOptions.batching disabled (default settings).

Links

Discussion