Contractors.es icon

Contractors.es

Interact with Contractors.es API

Actions995

Project Foremen Relation Api → Post Api Contractors Projects Project Foremen Attach

AI-generated

Summary

Attaches specified resources to a project foreman within a Contractors.es project.

Inputs

  • project (required) — The ID of the project to attach resources to.
  • resources — The resources (e.g., IDs or objects) to attach. Use the default value DO_NOT_SET if not providing this parameter.
  • requestOptions — Options for the HTTP request, including batching, proxy settings, and timeout.

Output shape

A single data item containing the API response for the attachment operation.

The response shape depends on the Contractors.es API documentation provided via the OpenAPI spec. Use the 'Project' parameter to target a specific project.

Examples

Example 1: Attach a specific resource ID to a project foreman

Set 'project' to the target project ID and 'resources' to the ID of the resource to attach.

Example 2: Attach multiple resources in a batch

Provide a JSON array in 'resources' (e.g., [123, 456, 789]). Enable batching in 'requestOptions' to handle multiple attachments efficiently.

Links

Discussion