Brand Service Tutorials
How to create a brand with media files
To create a brand with media files and add it to a product created beforehand, follow the process below:
- Upload brand images.
- Create a brand with media files.
- Update an existing product with brand information.
Before you start
Ensure that you have created a product.
info
For instructions, check out How to add your first product.
Upload an image
To include an image for a brand, first you need to upload the image to the database by sending a multipart request to theLoading...
attention
Note down the values of the
link
and id
attributes from the response. You will need this information to create a brand.Create a brand
To create a brand and add media files to it, you need to send a request to theattention
In the following request, you will use the
link
and id
elements received in the response in the Upload an image step:- The
image
element in the request below must have the same value as thelink
attribute in the response in the previous step. - The
cloudinaryUrl
element in the request below must have the same value as theid
attribute in the response in the previous step.
Loading...
Update an existing product with brand information
To specify a brand for a product, you need to provide theid
of the brand in the mixins
element of a chosen product. You can add brands either during the creation of the product, or by updating a product that already exists in the system. For the purposes of this tutorial, we are going to update an existing product with the brand object created above.To update the existing product with brand information, you need to send a request to the Loading...