Directus icon

Directus

Consume Directus API

Item → Update (Raw JSON)

AI-generated

Summary

Update a Directus item using raw JSON data

Inputs

  • collection (required) — The Directus collection (name or ID) where the item resides
  • itemId (required) — The ID of the item to update
  • jsonData (required) — Raw JSON object to send as the update payload

Output shape

array of objects each containing a json field

Each output item contains the Directus API response (typically { data: <updated item> }) under the json` key, paired with the original workflow item index

Examples

Example 1: Update an article's title

Set collection to 'articles', itemId to the article's ID, and jsonData to { title: 'New Title' }

Discussion