Intelup icon

Intelup

Interact with the Intelup API

Actions335

maintenance → Post Maintenance Labor Rules

AI-generated

Summary

Creates a maintenance labor rule in Intelup by sending a user-supplied JSON body to the public maintenance labor rules endpoint of the selected API version.

Inputs

  • version — Intelup API version to target: 3.42.3 (default), 3.41.6, or 3.41.5. The body field is identical across versions.
  • body__postPublicMaintenanceLaborRules (required) — JSON request body. The template has description (labor rule text), value (a date-time string in YYYY-MM-DDTHH:mm:ssZ format) and is_active (0 for false, 1 for true). Must parse as valid JSON or the node throws 'Body must be valid JSON'.

Output shape

One output item per input item, whose json is the parsed API response for the created labor rule.

The request is sent once per input item, using the same body parameter, which can be an expression. The request authenticates with the fenixApi credential (base URL, token, code and unit-code headers). The exact HTTP path and method come from a generated catalog that is not in the source shown. With Continue On Fail enabled, failed items return { error: message } instead of stopping the run.

Examples

Example 1: Register a new active labor rule

Version 3.42.3; Body: {"description":"Night shift labor rule","value":"2026-01-01T00:00:00Z","is_active":1}

Example 2: Create one rule per incoming item from a spreadsheet

Body set as an expression mapping fields from the incoming item, e.g. {{ JSON.stringify({description: $json.desc, value: $json.date, is_active: 1}) }}

Links

Discussion