GLPI Rest API V2 (Fork) icon

GLPI Rest API V2 (Fork)

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

Actions34

Dropdowns → Create

AI-generated

Summary

Creates a new dropdown entry in a specified GLPI dropdown type (Calendar, Location, Manufacturer, or State).

Inputs

  • showCredentials — If enabled, outputs the configured credentials and skips API requests.
  • dropdownType (required) — Type of dropdown to manage (Calendar, Location, Manufacturer, or State).
  • input — Raw JSON payload to send when creating a Dropdowns item. When Send raw body is enabled this will be used as the request body exactly as-is.
  • sendRawBody — When enabled, the JSON provided in 'Input (raw)' will be sent as the request body exactly as-is (no wrapper { input }).
  • dataForm — Optional form fields (Name, Value) to include in the request body.
  • data — Optional collection of fields (Name, Description, Additional JSON) to include in the request body.
  • confirmDelete — Must be true to allow deletion (relevant for other operations, not Create).

Output shape

A single item containing the created GLPI dropdown entry data.

The returned item represents the newly created entry as returned by the GLPI API.

Examples

Example 1: Create a new Location dropdown entry using raw JSON.

dropdownType = Location, input = {"name": "New Office", "value": "Office 42"}, sendRawBody = true

Example 2: Create a Calendar dropdown entry using the form fields.

dropdownType = Calendar, dataForm = {"name": "Meeting Slot", "value": "14:00"}

Links

Discussion