GLPI Rest API V2 (Fork) icon

GLPI Rest API V2 (Fork)

GLPI Rest API Node compatible with GLPI 9.x and above.

Actions34

Rule → Update

AI-generated

Summary

Updates an existing GLPI rule by ID, allowing modification of its name, criteria, actions, and data via JSON payload or collection fields.

Inputs

  • ruleId (required) — ID of the rule to update.
  • collection — Collection scope of the rule (e.g., 'global', 'user').
  • data — Fields to update (Name, Actions as JSON, or Criteria as JSON).
  • input — Raw JSON payload for the update request. When 'Send raw body' is enabled, this is sent directly as the request body.
  • sendRawBody — When enabled, the JSON provided in 'Input (raw)' is sent as the request body exactly as-is (no wrapper).

Output shape

The updated rule object from the GLPI API response.

Returns the full rule object returned by the GLPI API, including the updated fields.

Examples

Example 1: Update a rule's name and criteria using the data collection.

ruleId: 123, data: { name: 'Updated Rule Name', criteria: '[{"field":"status","operator":"is","value":"open"}]' }

Example 2: Send a complete JSON payload for the update.

ruleId: 456, input: '{ "name": "New Name", "criteria": [...], "actions": [...] }', sendRawBody: true

Links

Discussion