Actions18
- Auth Actions
- Collection Actions
- Global Actions
Overview
This node interacts with Payload CMS collections, specifically supporting the 'Update' operation on collections. It allows users to update documents within a specified collection by sending JSON-formatted data. The node supports additional options such as depth of relationship population, pagination, sorting, filtering, field selection, and locale specification. This is useful for automating content management workflows, updating records programmatically, or integrating Payload CMS with other systems.
Use Case Examples
- Updating a blog post collection with new content fields.
- Modifying user data in a users collection based on external input.
- Automating updates to product information in an e-commerce collection.
Properties
| Name | Meaning |
|---|---|
| Collection | The specific collection in Payload CMS to update documents in. |
| Data | The JSON-formatted data representing the fields and values to update in the collection documents. |
| Additional Options | Optional parameters to control the update operation, including depth of relationship population, limit of documents affected, pagination page, sorting order, filtering criteria (where clause), selected fields, and locale for localized content. |
Output
JSON
json- The JSON response from Payload CMS containing the updated document(s) data.
Dependencies
- An API key credential for Payload CMS authentication is required.
Troubleshooting
- Authentication failures due to invalid or expired API tokens. Ensure credentials are correct and the Payload CMS instance is accessible.
- Malformed JSON in the 'Data' or 'Where' fields can cause request errors. Validate JSON format before use.
- Incorrect collection names or document IDs will result in errors. Verify collection existence and document identifiers.
- Network or server errors from Payload CMS may occur; check the base URL and API prefix settings.
Links
- Payload CMS API Documentation - Official documentation for Payload CMS API endpoints and usage.