WorkBuddy

Interact with WorkBuddy API - Field service management

Actions227

Service Plans Lines → Create a Service Line

AI-generated

Summary

Create a new service plan line under a specified plan by providing required details such as Plan Id, Integration Id, and Name, along with optional attributes like description, work category, service type, service scope, schedule dates, and job default settings.

Inputs

  • Plan Id (required) — The identifier of the service plan to which the service line will be added.
  • Integration Id (required) — The integration identifier associated with the service line.
  • Name (required) — The display name for the service plan line.
  • Description — A detailed textual description of the service plan line.
  • Work Category Id — The work category identifier, retrievable from the work types settings, classifying the service line's category.
  • Service Type Id — Identifier for the type of service provided in this line.
  • Service Scope Id — Identifier defining the scope of the service.
  • Date Start — The start date for the service line's validity or operation.
  • Date End — The end date for the service line's validity or operation.
  • Default Window — Default time window associated with the service plan line.
  • Working Days — Specifies the working days applicable to this service line.
  • Blackout Ranges — JSON object defining blackout date ranges where service is unavailable.
  • Owner Id — Employee identifier owning this service plan line, selectable from CRM employees.
  • Requires Approval — Boolean flag indicating if this service line requires approval before execution.
  • Overdue Grace Days — Number of days allowed as grace period after due date before considered overdue.
  • Job Change Cutoff Minutes — Minutes before job start defining cutoff for job changes.
  • Job Defaults — Collection of default settings applied to jobs created under this service line, including job name, description, duration, priority ID, type ID, tag IDs, owner ID, field supervisor ID, and price book ID.

Output shape

a single record representing the newly created service plan line, with properties reflecting the input and any system-assigned values

The output includes all supplied and system-generated attributes of the created service line. No pagination applies for this operation.

Links

Discussion