Printcart icon

Printcart

Consume Prinrcart API

Actions80

Overview

The node integrates with the Printcart API to manage design resources within a print-on-demand or custom product platform. Specifically, the Update Design operation allows users to modify an existing design's details such as associated side, preview image, design image, notes, uploader status, design status, and viewport dimensions.

This node is beneficial in scenarios where automated workflows need to update design metadata or assets programmatically, for example:

  • Updating design previews after edits.
  • Changing design status based on review outcomes.
  • Adjusting viewport sizes for responsive display.
  • Adding notes or flags by uploaders or reviewers.

Practical example: After a designer uploads a new version of a product design, this node can update the design record with the new images and mark the status as "processing" or "accepted" automatically.


Properties

Name Meaning
Authentication Method of authentication; currently supports "API Token".
Design ID The unique identifier of the design to update (required).
Side ID Identifier of the side associated with the design (required).
Preview Image ID Identifier of the preview image for the design (required).
Design Image ID Identifier of the main design image (required).
Note Text note or comment related to the design (required).
Uploader Boolean flag indicating if the user is the uploader of the design (required).
Status Collection specifying the design's status type. Options: Processing, Accepted, Trashed, Declined (required).
Viewport Width Numeric value representing the width of the viewport for the design (required).
Viewport Height Numeric value representing the height of the viewport for the design (required).

Output

The node outputs a JSON array containing the response from the Printcart API for the update design request. The structure corresponds to the updated design object returned by the API, which typically includes fields like design ID, side ID, image IDs, note, uploader flag, status, viewport dimensions, timestamps, and other metadata.

No binary data output is involved in this operation.


Dependencies

  • Requires an API token credential for authenticating requests to the Printcart API.
  • The node uses HTTP requests to the Printcart API endpoints, so network connectivity to https://api.printcart.com is necessary.
  • No additional external dependencies are required beyond the API token.

Troubleshooting

  • Common issues:

    • Invalid or missing Design ID will cause the API to reject the update request.
    • Incorrect or expired API token will result in authentication errors.
    • Providing invalid IDs for side, preview image, or design image may cause the API to return errors.
    • Omitting required properties like status or viewport dimensions will lead to validation failures.
  • Error messages:

    • Authentication errors usually indicate invalid credentials; verify the API token.
    • 404 Not Found errors suggest that the specified design or related resource does not exist.
    • 400 Bad Request errors often mean missing or malformed parameters; ensure all required fields are correctly set.
  • Resolution tips:

    • Double-check all required input fields before execution.
    • Confirm the API token is valid and has sufficient permissions.
    • Use the Printcart API documentation to verify correct parameter formats and values.

Links and References


If you need further details on other operations or resources, feel free to ask!

Discussion