Intelup icon

Intelup

Interact with the Intelup API

Actions335

maintenance → Put Maintenance Priority By Id

AI-generated

Summary

Updates an existing maintenance priority in Intelup by ID, sending a JSON body with the priority's code and description via an HTTP PUT request.

Inputs

  • version (required) — Intelup API version to target (3.42.3, 3.41.6 or 3.41.5). Defaults to 3.42.3. The fields below are the same in every version.
  • id (required) — ID of the maintenance priority to update. It is URL-encoded and substituted into the request path.
  • body__putPublicMaintenancePriorityById (required) — JSON request body. The default template has codigo (priority code) and descricao (priority description). It must be valid JSON, otherwise the node throws 'Body must be valid JSON'.

Output shape

One output item per input item. Each item's json is the parsed response from the Intelup API for the update.

The request runs once per input item and is authenticated with the credential's token, code and unit-code headers. The exact HTTP path comes from a generated catalog that isn't in the source shown. If 'Continue On Fail' is enabled, a failed item returns {error: message} instead of stopping the workflow.

Examples

Example 1: Rename the description of an existing maintenance priority

Version 3.42.3; Id = "12"; Body = {"codigo":"URG","descricao":"Urgent"}

Example 2: Update priorities in bulk from a spreadsheet

Feed items with id, codigo and descricao fields. Set Id to {{$json.id}} and Body to an expression that builds the JSON from the other fields.

Links

Discussion