McMain icon

McMain

Interact with McMain API

Work Order → Set Status Complete

AI-generated

Summary

Set the status of a work order to complete

Inputs

  • id (required) — ID of the work order to mark as complete
  • batching — Controls batching behavior for the request
  • allowUnauthorizedCerts — Whether to accept the response even if SSL certificate validation is not possible
  • proxy — HTTP proxy to use. If authentication is required it can be defined as follow: http://username:password@myproxy:3128
  • timeout — Time in ms to wait for the server to send response headers before aborting the request

Output shape

a single work order record (updated) or error envelope

On success the node returns the updated work order; on failure an error object with details.

Examples

Example 1: Mark work order as complete

Set id to the work order's ID, leave other options at defaults.

Example 2: Batch process multiple work orders

Enable Batching, set batchSize to 20, keep default batchInterval, provide id via expression.

Example 3: Ignore SSL certificate errors

Set allowUnauthorizedCerts to true, provide Work Order ID.

Discussion