Intelup icon

Intelup

Interact with the Intelup API

Actions335

event → Post Event Group Motive

AI-generated

Summary

Creates a new event motive group in Intelup by sending a JSON body to the Intelup public API (operationKey postPublicEventGroupMotive). The HTTP method and path come from a bundled version catalog that isn't shown in the source.

Inputs

  • version (required) — Intelup API version to target: 3.42.3 (default), 3.41.6 or 3.41.5. The body fields are the same in all three versions.
  • body__postPublicEventGroupMotive (required) — JSON request body. The template contains gru_codigo (motive group code), gru_descricao (description), gru_apontamento_automatico ("S" in the template, presumably a yes/no flag for automatic logging) and color (hex, e.g. #000000). Edit the template as needed. Invalid JSON throws 'Body must be valid JSON'.

Output shape

One output item per input item. Its json is the Intelup API's parsed response to the create request.

The request is sent once per input item, using the credential's base URL and the token, code and unit-code headers. The body is read per item, so expressions can vary it. If Continue On Fail is enabled, a failed item returns {error: message} instead of stopping the workflow. The response schema isn't defined in the source.

Examples

Example 1: Create a motive group with automatic logging enabled.

Version 3.42.3; body {"gru_codigo":"MNT","gru_descricao":"Maintenance","gru_apontamento_automatico":"S","color":"#FF0000"}

Example 2: Bulk-create groups from spreadsheet rows.

Feed one row per item, then set the body to an expression such as {{ JSON.stringify({gru_codigo: $json.code, gru_descricao: $json.name, gru_apontamento_automatico: "N", color: $json.color}) }}

Links

Discussion