WorkBuddy

Interact with WorkBuddy API - Field service management

Actions227

Service Plans Lines Tasks Subtasks → Update a Subtask

AI-generated

Summary

Updates an existing subtask within a service plan line, allowing modifications to metadata, enabled features, and evidence enforcement policies.

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.
  • identifier (required) — The entity ID or human-readable number of the subtask to update.
  • name — The display name of the subtask.
  • description — Detailed description of the subtask.
  • mandatory — Whether the subtask is mandatory.
  • mandatoryForClaiming — Whether the subtask is mandatory for claiming.
  • signatureEnabled — Whether signature collection is enabled for this subtask.
  • commentEnabled — Whether comments are enabled for this subtask.
  • beforePhotoEnabled — Whether 'before photo' collection is enabled for this subtask.
  • duringPhotoEnabled — Whether 'during photo' collection is enabled for this subtask.
  • afterPhotoEnabled — Whether 'after photo' collection is enabled for this subtask.
  • fileEnabled — Whether file uploads are enabled for this subtask.
  • fileTemplateId — The ID of the file template to associate with this subtask.
  • formEnabled — Whether form collection is enabled for this subtask.
  • formTemplateId — The ID of the form template to associate with this subtask.
  • evidenceEnforcement — Enforcement rules for required evidence types (e.g., Before Photo, After Photo).

Output shape

A single item containing the updated subtask record.

The node does not specify a return value in the properties, but standard PATCH implementations typically return the updated resource.

Examples

Example 1: Update a subtask's metadata and enable photo collection

Set mandatoryForClaiming to true, enable 'beforePhotoEnabled' and 'afterPhotoEnabled' with 'RequiredNoExceptions'.

Example 2: Change a subtask's description and enable comment collection

Set description to a new value and enable 'commentEnabled'.

Links

Discussion