You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Publicly reachable URL of the raster image (JPEG, PNG, GIF or WebP), maximum 15MB. The image is fetched, virus-scanned and validated by content, then stored on the CDN. SVG is not accepted. Provide either this or object_name.
[optional]
object_name
str
Key returned by the upload-url endpoint. Provide this instead of image_url to attach an uploaded image.
[optional]
is_thumbnail
bool
When true, the image becomes the product's thumbnail (primary image). When omitted, it becomes the thumbnail only if the product does not have one yet.
[optional]
Example
fromhostinger_api.models.ecommerce_v1_product_upload_product_image_requestimportEcommerceV1ProductUploadProductImageRequest# TODO update the JSON string belowjson="{}"# create an instance of EcommerceV1ProductUploadProductImageRequest from a JSON stringecommerce_v1_product_upload_product_image_request_instance=EcommerceV1ProductUploadProductImageRequest.from_json(json)
# print the JSON string representation of the objectprint(EcommerceV1ProductUploadProductImageRequest.to_json())
# convert the object into a dictecommerce_v1_product_upload_product_image_request_dict=ecommerce_v1_product_upload_product_image_request_instance.to_dict()
# create an instance of EcommerceV1ProductUploadProductImageRequest from a dictecommerce_v1_product_upload_product_image_request_from_dict=EcommerceV1ProductUploadProductImageRequest.from_dict(ecommerce_v1_product_upload_product_image_request_dict)