GLPI Rest API V2 (Fork) icon

GLPI Rest API V2 (Fork)

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

Actions34

Assets → Update

AI-generated

Summary

Updates an existing asset in GLPI using a raw JSON payload.

Inputs

  • itemtype (required) — Type of asset to update (e.g., Computer, Monitor, Software).
  • itemid (required) — ID of the specific asset to update.
  • input — Raw JSON payload containing the fields to update. When Send raw body is enabled, this object is sent as the request body; otherwise, it is wrapped in a 'input' key.
  • sendRawBody — When enabled, the JSON provided in 'Input (raw)' is sent as the request body exactly as-is (no wrapper).
  • data — A collection form to add specific fields (e.g., Name, Description, Additional JSON).
  • confirmDelete — Must be true to allow deletion (used for Delete operation, not applicable to Update).
  • showCredentials — If enabled, outputs the configured credentials and skips the API request.

Output shape

The updated asset object or API response.

Returns the full JSON response from the GLPI API, including the updated item data.

Examples

Example 1: Update a Computer asset name and location.

Item Type: Computer, Item ID: 42, Input (raw): {"name": "New Laptop", "location": {"id": 5}}

Example 2: Update asset fields using the Data form.

Item Type: Appliance, Item ID: 10, Data: Name set to 'Server Rack A', Description set to 'Updated description'.

Links

Discussion