Upload product image
Uploads a new image to a product. The image data must be Base64-encoded and sent in the
data field along with the file name and MIME type. Requires admin scope.
POST
/products/{product_id}/assetsAuthorization
AuthorizationBearer token (JWT) · headerrequiredOAuth 2.0 Bearer token. Obtain via POST https://auth.onbolder.com/oauth/token.
Scopes:
adminPath parameters
product_idstringrequiredProduct ID or slug
Request body
requiredapplication/jsondatastringrequiredBase64-encoded image data URI (data:image/jpeg;base64,...)
file_namestringrequiredtitlestringdescriptionstringResponses
201
Image uploaded
file_namestringtitlestringdescriptionstring_linksobjectShow propertiesHide properties
thumbnailHalLinkShow propertiesHide properties
hrefstringmethodstringtitlestringtypestringtemplatedbooleansmallHalLinkShow propertiesHide properties
hrefstringmethodstringtitlestringtypestringtemplatedbooleanmediumHalLinkShow propertiesHide properties
hrefstringmethodstringtitlestringtypestringtemplatedbooleanlargeHalLinkShow propertiesHide properties
hrefstringmethodstringtitlestringtypestringtemplatedbooleanoriginalHalLinkShow propertiesHide properties
hrefstringmethodstringtitlestringtypestringtemplatedbooleanbtc:delete_product_assetHalLinkShow propertiesHide properties
hrefstringmethodstringtitlestringtypestringtemplatedboolean422
Validation errors
_classstring[]_embeddedobjectShow propertiesHide properties
errorsobject[]Show propertiesHide properties
Array of
object_classstring[]fieldstringmessagesstring[]