Actions83
- Account Actions
- Clipart Actions
- Clipart Storage Actions
- Design Actions
- Font Actions
- Image Actions
- Product Actions
- Project Actions
- Project Folder Actions
- Side Actions
- Storage Actions
- Store Actions
- Template Actions
- Webhook Actions
Overview
The node integrates with the Printcart API to manage products within a print-on-demand or custom product platform. Specifically, the "Update Product" operation allows users to modify existing product details such as name, dimensions, status, allowed file types, and other configuration options.
This node is beneficial in scenarios where you need to automate updates to product information in your Printcart store, for example:
- Updating product specifications after receiving new design assets.
- Changing product availability status (e.g., from draft to published).
- Adjusting allowed file types or enabling/disabling features like design uploads or print-on-demand.
Practical example: Automatically update product details when a new version of a product design is approved, ensuring the online store reflects the latest specifications without manual intervention.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method of authentication; currently supports "API Token". |
| Product ID | The unique identifier of the product to update (required). |
| Product Name | The new name for the product (required). |
| Dynamic Side | Boolean flag indicating if the product has dynamic sides (true/false). |
| Viewport Width | Numeric value specifying the width of the viewport for the product's design area (precision 1). |
| Viewport Height | Numeric value specifying the height of the viewport for the product's design area (precision 1). |
| Scale | Numeric scale factor for the product (precision 1). |
| Dpi | Dots per inch setting for the product (required). |
| Demension Unit | Unit of measurement for dimensions; options are "Cm", "Pixel", or "Inch" (required). |
| Status | Product status type; options are "Publish" or "Draft". |
| Allow File Types | List of allowed file types for uploads; options include "Jpg", "Png", "Ai", and "Pdf" (required). |
| Enable Design | Boolean flag to enable or disable design feature on the product. |
| Enable Upload | Boolean flag to enable or disable upload feature on the product. |
| Enable Pod | Boolean flag to enable or disable print-on-demand feature on the product. |
| Type ID | Product type identifier; currently only "Simple" is supported (required). |
| Description | Text description of the product (required). |
Output
The node outputs JSON data representing the updated product object returned by the Printcart API. This typically includes all product attributes such as ID, name, dimensions, status, allowed file types, and feature flags reflecting the updated state.
No binary data output is produced by this operation.
Dependencies
- Requires an API token credential for authenticating requests to the Printcart API.
- The node makes HTTP PUT requests to the Printcart API endpoint for products, specifically to URLs formatted as
https://{sid}:{secret}@api.printcart.com/v1/products/{productId}where{sid}and{secret}are credentials retrieved internally. - Proper configuration of the API token credential in n8n is necessary for successful execution.
Troubleshooting
- Authentication errors: Ensure that the API token credential is correctly configured and valid. Invalid or expired tokens will cause authentication failures.
- Invalid Product ID: If the specified product ID does not exist or is incorrect, the API will return an error. Verify the product ID before running the node.
- Missing required fields: Required properties such as Product ID, Product Name, DPI, Dimension Unit, Allowed File Types, Type ID, and Description must be provided; otherwise, the request may fail.
- API connectivity issues: Network problems or incorrect API endpoint URLs can cause request failures. Confirm network access and correct endpoint usage.
- Data type mismatches: Ensure numeric fields like viewport dimensions, scale, and dpi are numbers and within acceptable ranges.
Links and References
- Printcart API Documentation (Assumed official API docs for further details)
- n8n documentation on HTTP Request Node for understanding how API calls are made within n8n workflows.