Actions35
- Adjustments Actions
- Assemblies Actions
- Batches Actions
- Companies Actions
- Contacts Actions
- Custom Fields Actions
- File Attachments Actions
- Inventory Actions
- Invoices Actions
- Locations Actions
- Orders Actions
- Packages Actions
- Payment Methods Actions
- Product POS Mappings Actions
- Products Actions
- Purchases Actions
- Strains Actions
- Test Results Actions
- Users Actions
Products → Upsert Images
AI-generatedOverview
This node operation allows users to upsert (update or insert) images associated with a product in the Distru system. It is useful for managing product image galleries by adding new images or updating existing ones via their URLs. For example, a user can automate the process of updating product images in an e-commerce inventory by providing the product ID and a list of image URLs to associate with that product.
Use Case Examples
- Updating product images by specifying the product ID and providing multiple image URLs to be linked to the product.
- Automating image management for products in a catalog by batch upserting images through the API.
Properties
| Name | Meaning |
|---|---|
| Resource ID | The unique identifier of the product for which images are being upserted. This is required to specify the target product. |
| Images | A list of image URLs to associate with the specified product. Multiple URLs can be provided to add or update several images at once. |
Output
JSON
json- The response data from the Distru API after upserting product images, typically containing details about the updated images or success confirmation.
Dependencies
- Requires an API token credential for authenticating requests to the Distru Public API v1.
Troubleshooting
- Ensure the 'Resource ID' (product ID) is provided and correctly formatted; missing or invalid IDs will cause errors.
- Verify that the 'Images' property contains valid URLs; invalid URLs may result in failed image association.
- Check that the API token credential is set and valid; authentication failures will prevent the operation from succeeding.
- If the node throws an error about missing binary data, ensure that the correct property name is used or that the operation matches the expected input type.