Contractors.es icon

Contractors.es

Interact with Contractors.es API

Actions995

Job Visit Notes Relation Api → Post Api Contractors Job Visits Job Visit Notes Batch Restore

AI-generated

Summary

Restores multiple soft-deleted Job Visit Notes for a specific Job Visit.

Inputs

  • job_visit (required) — The unique identifier of the Job Visit to restore notes for.
  • resources — A JSON object containing the notes to restore. Fields are optional; omitting a field sends an empty string to the API.
  • requestOptions — Configuration for request execution, including batching options, SSL settings, proxy, and timeout.

Output shape

The API's response data, typically an array of restored notes or a success confirmation.

The operation uses the API's 'with_trashed' parameter (defaulting to false) to target soft-deleted records.

Examples

Example 1: Restore a list of notes for a specific job visit using batching.

Set job_visit to 123, provide a resources JSON object, and enable batching with 20 items per batch and a 500ms interval.

Example 2: Restore a single note for a job visit.

Set job_visit to 456 and set resources to { note_ids: [789] }.

Links

Discussion