younifyd
Menu

Upload image

Upload image

POST/visual/upload/{widget_id}

Use it in a workflow

  1. Add a step and choose the Bloomreach Discovery connector.
  2. Pick the Upload image action (under Recommendations & Pathways).
  3. Fill in the fields below, then reference the result from later steps as {{uploadImage.response.data}}.

Request

Path parameters

widget_idstringrequired

The ID of the widget, which can be found in the [Widget Configurator](https://documentation.bloomreach.com/discovery/docs/widget-configurator) in the Dashboard. The example value shown here, <i>1jwy7eg9</i>, is included for your convenience to send a request with <b>Try It</b>.

Default "1jwy7eg9"

Headers

Content-Dispositionstringrequired

This specifies the form field as "image" and the suggested filename of the image being uploaded. Example syntax: `Content-Disposition: form-data; name="image"; filename="filename.jpg"`

Default "form-data; name=\"image\"; filename=\"filename.jpg\""

Content-Typestringrequired

This header specifies the media type (image) and format. We accept all image formats - jpg, png, jpeg, webp. Example syntax: `Content-Type: image/jpeg`

Default "image/jpeg"

Need more? See the Bloomreach Discovery guide for connection setup and behaviour shared by every action.

Was this page helpful?