Intelup icon

Intelup

Interact with the Intelup API

Actions335

event → Put Event Motive By Id

AI-generated

Summary

Updates an existing event motive in the Intelup (Fenix) API by ID, sending a JSON body with the new field values via an HTTP PUT request.

Inputs

  • version (required) — Intelup API version to target: 3.42.3 (default), 3.41.6, or 3.41.5.
  • id (required) — ID of the event motive to update. It is URL-encoded and substituted into the request path.
  • body__putPublicEventMotiveById (required) — JSON request body with the motive fields to set. The default example, generated from the Swagger spec, is {"mot_planejado":"S","mot_aprovacao":"S","color":"#000000"}. It must parse as valid JSON or the node errors.

Output shape

One output item per input item, with the parsed API response as its json.

The request is sent once per input item, using the fenixApi credentials (base URL, token, code, unit-code headers). If Continue On Fail is enabled, a failed item returns {error: message} instead of stopping the workflow. The exact response shape is not defined in the node source; it is whatever the API returns.

Examples

Example 1: Change the color of an event motive and mark it as requiring approval.

Version 3.42.3, Id set to the motive ID, Body {"mot_planejado":"S","mot_aprovacao":"S","color":"#FF0000"}.

Links

Discussion