McMain icon

McMain

Interact with McMain API

Work Order → Add Comment

AI-generated

Summary

Adds a comment to a Work Order

Inputs

  • id (required) — The Work Order ID to which the comment will be added.
  • craft (required) — The author of the comment.
  • text (required) — The content of the comment.
  • requestOptions — Optional request configuration such as batching, proxy, timeout, and SSL verification.

Output shape

a single comment record

The response contains the created comment details; field availability may vary.

Examples

Example 1: Add a comment to Work Order 12345 authored by Alice with message 'Needs inspection'

id: 12345, craft: "Alice", text: "Needs inspection", requestOptions: {}

Example 2: Batch add comments to multiple work orders

id: 5001, craft: "Bob", text: "Scheduled", requestOptions: {batching: {batchSize: 10}}

Example 3: Add comment with SSL verification disabled

id: 9876, craft: "Charlie", text: "Urgent", requestOptions: {allowUnauthorizedCerts: true}

Discussion