Update
AI-generatedSummary
Update a Drupal JSON:API entity by specifying its entity type, bundle, and UUID, providing new attribute values as JSON to modify the entity.
Inputs
- Entity Type {Entity} Name or ID (required) — Select or specify the Drupal entity type name or ID that identifies the kind of entity to update.
- Bundle {Entity} Name or ID (required) — Select or specify the bundle name or ID for the entity type, determining the subtype or variation of the entity.
- UUID (required) — Provide the UUID of the specific entity instance to update.
- Attributes (JSON) (required) — Enter a JSON object specifying the attributes to update in the entity, formatted according to Drupal's JSON:API specification.
Output shape
Returns a single JSON object representing the updated Drupal entity, including its updated attributes and metadata.
Ensure the 'Attributes (JSON)' field contains valid JSON object syntax. Errors are thrown if JSON is invalid or not an object. The output corresponds to the JSON:API response after a successful PATCH update request.
Examples
Example 1: Update the title of a Drupal article entity.
Set Entity Type to 'node', Bundle to 'article', provide the UUID of the article node, and specify {"title":"New title"} in Attributes (JSON).