WorkBuddy

Interact with WorkBuddy API - Field service management

Actions227

Service Plans Lines Tasks Subtasks → Create Subtasks

AI-generated

Summary

Creates subtasks under a specific task within a service plan line using the provided IDs and payload.

Inputs

  • planId (required) — The ID of the service plan.
  • lineId (required) — The ID of the service plan line.
  • taskId (required) — The ID of the task to which subtasks will be attached.
  • items (required) — A JSON object containing the data for the subtasks to be created. Passed as the request body.
  • requestOptions — Optional configuration for HTTP requests, including batching, proxy settings, and timeouts.

Output shape

A list of items containing the response data from the API (success or error).

Uses the configured HTTP request settings. Batching can be applied to process multiple subtask creations efficiently.

Examples

Example 1: Create a single subtask for a specific task ID.

planId, lineId, and taskId set; items object contains the subtask details.

Example 2: Create multiple subtasks using batching.

planId, lineId, and taskId set; items array provided; batching enabled with 50 items per batch.

Links

Discussion