WorkBuddy

Interact with WorkBuddy API - Field service management

Actions227

Service Plans Lines Tasks → Create root Service Line Tasks

AI-generated

Summary

Creates root service line tasks within a specific service plan and line, accepting a JSON payload of items.

Inputs

  • planId (required) — The ID of the service plan to create the task in.
  • lineId (required) — The ID of the service plan line to create the task in.
  • items (required) — A JSON object containing the data for the tasks to be created. The 'items' property of this object is sent as the body payload to the API endpoint.
  • requestOptions — Optional request settings including batching, proxy, timeout, and SSL options.

Output shape

A list of items containing the created task records.

The exact shape of the returned data depends on the API response of the service plans lines tasks endpoint.

Examples

Example 1: Create 10 tasks in a specific plan and line

Set planId and lineId to target identifiers; provide a JSON object with an 'items' array containing the task data.

Example 2: Throttle requests to avoid hitting API limits

Use requestOptions batching with batchSize=50 and batchInterval=1000 to process items in batches.

Links

Discussion