Drupal icon

Drupal

Interact with Drupal JSON:API generically

Create

AI-generated

Summary

Create a new Drupal entity of a specified entity type and bundle by providing its attributes as a JSON object.

Inputs

  • Entity Type {Entity} Name or ID (required) — Select or specify the Drupal entity type to create, either by choosing from the list or using an expression.
  • Bundle {Entity} Name or ID (required) — Select or specify the bundle for the chosen entity type, either from the list or using an expression. The available bundles depend on the selected entity type.
  • Attributes (JSON) — Provide a JSON object representing the attributes for the entity to be created. Must be valid JSON and follow the Drupal JSON:API attribute structure.

Output shape

a single record containing the JSON response from the Drupal JSON:API representing the created entity

The output includes the full JSON response returned by the Drupal API for the newly created entity. Errors occur if the attributes JSON is invalid.

Discussion