Contractors.es icon

Contractors.es

Interact with Contractors.es API

Actions995

Task Employee Relation Api → Patch Api Crm Tasks Task Employees Toggle

AI-generated

Summary

Update (patch) the toggle state of a task's employee relation in the Contractors.es CRM via the API.

Inputs

  • Task (required) — The numeric identifier of the task to update the employee relation for.
  • Resources — A JSON object specifying which employee relation properties to update. If set to 'DO_NOT_UPDATE', the operation skips updating these fields.
  • Request Options — Optional settings controlling request batching, SSL verification, proxy, and timeout behavior.

Output shape

a single JSON response object from the Contractors.es API reflecting the updated task employee relation.

The Resources parameter defaults to 'DO_NOT_UPDATE'. If Resources contains this sentinel value or 'DO_NOT_SET', it will not be included in the request body. The operation issues a PATCH request, so only provided fields in Resources are updated. Request options allow batching, ignoring SSL issues, proxying, and timeout customization.

Examples

Example 1: Updating the toggle state of an employee relation for a specific task

Set the Task input to the desired task ID. Provide a JSON object in Resources with the fields to toggle or leave as 'DO_NOT_UPDATE' to skip changes. Adjust Request Options as needed to control request behavior.

Links

Discussion