Payload CMS

Interact with Payload CMS collections and globals

Overview

This node interacts with Payload CMS to update global data. It allows users to select a specific global configuration within Payload CMS and update its content by sending JSON-formatted data. This is useful for managing site-wide settings or configurations stored as globals in Payload CMS, such as updating site metadata, configuration options, or other global content.

Use Case Examples

  1. Updating the site settings global to change the site title and description.
  2. Modifying a global configuration for localization settings in Payload CMS.

Properties

Name Meaning
Global The specific global configuration in Payload CMS to update.
Data The JSON-formatted data to update the selected global with.
Additional Options Optional parameters to control the request such as depth of relationship population, pagination, sorting, filtering, field selection, and locale for localized content.

Output

JSON

  • json - The response data from Payload CMS after updating the global, containing the updated global content.

Dependencies

  • An API key credential for Payload CMS authentication is required.

Troubleshooting

  • Authentication failures due to invalid or expired API credentials. Ensure the API key or login credentials are correct and valid.
  • Errors parsing the JSON data input. Verify that the JSON data provided in the 'Data' field is correctly formatted.
  • Network or connectivity issues with the Payload CMS instance. Confirm the base URL and API prefix are correct and the server is accessible.
  • Invalid global slug or the global does not exist in Payload CMS. Check that the selected global is valid and available in the CMS instance.

Links

Discussion