Intelup icon

Intelup

Interact with the Intelup API

Actions335

maintenance → Post Maintenance Materials Services

AI-generated

Summary

Creates a maintenance material or service record in Intelup by sending a JSON body to the public maintenance materials/services endpoint. The node sends it as a POST request using the configured credentials.

Inputs

  • version — Intelup API version to target: 3.42.3 (default), 3.41.6 or 3.41.5. Selects which operation definition is used.
  • body__postPublicMaintenanceMaterialsServices (required) — JSON request body (Body (JSON)). The template has id_unit_measurement, codigo (material code), descricao (description), tipo_material (1 piece, 2 lubricant, 3 external service), preco_ultima_compra (last purchase price), quantidade_estoque (stock quantity), quantidade_reservada (reserved quantity), centro (center) and deposito (deposit). It must parse as valid JSON, otherwise the node throws 'Body must be valid JSON'. The default template is placeholder text, so replace the values. For example, tipo_material should be a number code, not the descriptive string.

Output shape

One output item per input item. Its json field holds the parsed JSON response from the Intelup API.

The node runs once per input item and sends the same configured body each time unless you use expressions. The body is read as a string and parsed as JSON. Authentication headers (token, code, unit-code) come from the fenixApi credential, and the URL is the credential's baseUrl plus the endpoint path. The exact endpoint path is not visible in the provided source because it is loaded from generated version files. With Continue On Fail enabled, a failed item returns { error: message } instead of stopping the workflow.

Examples

Example 1: Register a new lubricant in the maintenance catalog

Version 3.42.3; Body: {"id_unit_measurement":"1","codigo":"LUB-001","descricao":"Gear oil 90","tipo_material":"2","preco_ultima_compra":"45.90","quantidade_estoque":"20","quantidade_reservada":"0","centro":"C01","deposito":"D01"}

Example 2: Sync materials from a spreadsheet row by row

Feed rows into the node. Set the Body (JSON) field to an expression that builds the JSON string from each row's columns, e.g. codigo and descricao.

Links

Discussion