Payload CMS icon

Payload CMS

Interact with Payload CMS collections and globals

Collection → Update

AI-generated

Summary

Update documents in a selected Payload CMS collection

Inputs

  • collection (required) — Choose the collection to operate on
  • data (required) — The data to send (JSON format)
  • additionalOptions — Optional query, pagination, filtering, and other parameters for the request

Output shape

array of objects, each containing a json field with the API response

Each element corresponds to one workflow item; on error the json field may hold error details, otherwise it contains the successful response.

Examples

Example 1: Update a post document with extra query parameters

collection: 'posts', data: {title: 'Updated Title'}, additionalOptions: {where: {}, query: {populate: 'author'}}

Links

Discussion