Actions34
- Administration Actions
- Components Actions
- Dropdowns Actions
- Management Actions
- Project Actions
- Rule Actions
- Session Actions
- Assistance Actions
- Assets Actions
Rule → Update
AI-generatedSummary
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