Prepr icon

Prepr

Interact with the Prepr API to create, update or delete items.

Overview

This node integrates with the Prepr API to manage content items in a headless CMS environment. Specifically, the "Assign" operation assigns a content item (identified by its ID and locale) to a specific user by their user ID. This is useful in collaborative content workflows where items need to be assigned to team members for editing, review, or approval.

Practical examples:

  • Assigning a newly created article to a content editor for further refinement.
  • Reassigning an existing blog post to another team member for translation or update.
  • Automating assignment of content pieces based on workflow rules or triggers.

Properties

Name Meaning
Locale Name or ID Select the locale of the content item. Choose from a list of available locales or specify an ID using an expression.
Item ID The unique identifier of the content item to which the assignment action will be applied.
User ID The unique identifier of the user to whom the content item will be assigned.

Output

The node outputs a JSON array containing the response from the Prepr API after the assignment operation. The JSON structure typically includes details about the updated content item reflecting the new assignment state.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential configured in n8n to authenticate requests against the Prepr API.
  • The node makes HTTP PATCH requests to the Prepr API endpoint https://api.eu1.prepr.io/content_items/{itemId}/{locale}/assign/{userId}.
  • The node depends on the Prepr API being accessible and the provided IDs (item, locale, user) being valid within the Prepr system.

Troubleshooting

  • Common issues:

    • Invalid or missing Item ID, Locale, or User ID parameters will cause the API call to fail.
    • Network connectivity problems or incorrect API credentials can prevent successful communication with the Prepr API.
    • Attempting to assign an item that does not exist or is not accessible under the given locale may result in errors.
  • Error messages:

    • "Assign operation failed": Indicates the API returned a non-success status code. Check that all IDs are correct and the API credentials have sufficient permissions.
    • HTTP 4xx or 5xx errors: Review the error message body for more details; ensure the API endpoint URL and method are correct.
  • Resolution tips:

    • Verify all input parameters carefully.
    • Confirm API credentials are valid and have necessary scopes.
    • Test API calls independently (e.g., via Postman) to isolate issues.
    • Ensure the Prepr service is operational and reachable.

Links and References

Discussion