GLPI Rest API V2 (Fork) icon

GLPI Rest API V2 (Fork)

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

Actions34

Components → Update

AI-generated

Summary

Updates a GLPI component definition or instance by ID, allowing changes to name, description, and custom fields.

Inputs

  • itemtype (required) — Type of component (e.g., Memory, Battery, Processor).
  • itemid (required) — ID of the component definition to update. For instances, use the Instances endpoint path (see note).
  • title — New name/title (leave empty to keep existing).
  • description — New description (leave empty to keep existing).
  • input — Collection of fields to update, including 'Custom Fields (JSON)' for additional properties.

Output shape

A single item containing the updated component data.

The operation uses the GLPI REST API. When updating instances, the ID refers to the instance ID, not the definition ID.

Examples

Example 1: Update a Memory component definition

Item Type: Memory, Item ID: 5, Title: 'DDR4 16GB', Description: 'Updated memory specification'

Example 2: Update a Battery instance

Item Type: Battery, Item ID: 12, Description: 'Replaced in device #402'

Links

Discussion