Actions80
- 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 "Side" resources of products, specifically allowing users to update details of a product's side. This operation is useful in scenarios where you need to modify attributes such as the side's name, background type and color, scale, image size, design arena dimensions, associated side image, and status.
Practical examples include:
- Updating the visual appearance or metadata of a product side after design changes.
- Adjusting layout parameters like scale or design area to fit new design requirements.
- Changing the status of a side (e.g., from draft to publish) to control its visibility.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method of authentication; currently supports "API Token". |
| Side ID | The unique identifier of the side to update (required). |
| Product ID | The unique identifier of the product this side belongs to (required). |
| Name of the Side | The name assigned to the side (required). |
| Background Type | The type of background for the side; options are: Color, Image, Transparent. |
| Background Color Value | The color value used for the side's background (required if background type is color). |
| Scale | The scale factor of the side (required). |
| Width | Width dimension of the side image size (required). |
| Height | Height dimension of the side image size (required). |
| Width Arena | Width dimension of the design arena area (required). |
| Height Arena | Height dimension of the design arena area (required). |
| Top Arena | Top offset position of the design arena (required). |
| Left Arena | Left offset position of the design arena (required). |
| Side Image ID | Identifier of the side image associated with this side (required). |
| Status | Status of the side; options are Publish, Draft, Trashed (required). |
Output
The node outputs JSON data representing the updated side resource as returned by the Printcart API. This typically includes all properties of the side after the update, such as IDs, names, background settings, scale, image sizes, design arena dimensions, side image references, and status.
No binary data output is involved in 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 sides, using the provided credentials.
- No additional environment variables or external services beyond the Printcart API are required.
Troubleshooting
Common issues:
- Missing or invalid Side ID or Product ID will cause the API request to fail.
- Incorrect or expired API token will result in authentication errors.
- Providing inconsistent or invalid values for background type and color may cause validation errors.
- Network connectivity issues can prevent successful API calls.
Error messages and resolutions:
- Authentication failed: Verify that the API token is correct and has not expired.
- Side not found: Check that the Side ID exists and is correctly specified.
- Validation error: Ensure all required fields are provided and valid, especially background type/color and status.
- Network error: Confirm network access to the Printcart API endpoint.
Links and References
- Printcart API Documentation (hypothetical link for reference)
- n8n documentation on HTTP Request Node for understanding API integrations.