Sample Use Cases and Flows

This article shares some potential use cases for your app and provides sample flows for creating, managing, and assigning brands to products effectively. This can be a helpful jumping off point as you plan your app's implementation.

Create a product with a new brand

In order to assign a new non-existing brand to new product, you can provide a brand name to Create Product request.

To do this, your app can create a product with Create Product and assign the brand to the product by passing a new brand.name :

Copy
1

Note that if a brand with brand.name already exists, it will assign the existing brand to the product.

Assign existing brand to a product

In order to assign an existing brand to a product, you need to assign it on Update Product Request.

To do this, your app can follow these steps:

  1. Select an existing brand from the bank to be assigned to the product.

  2. Update a product with Update Product and assign the brand to the product by passing brand.id or brand.name:

Copy
1

Note that a brand can be assigned to a product either by passing brand.name or by passing brand.id.

Edit Brand

In order to edit an existing brand, you need to edit it with Update Brand Request.

To do this, your app can follow these steps:

  1. Select an existing brand from the bank to be updated.

  2. Use the Id of the selected brand to update the name by calling Update Brand with brand.id and the new name:

Copy
1

Delete multiple Brands

In order to delete an existing brands, you need to delete it with Bulk Delete Request.

To do this, your app can follow these steps:

  1. Select the IDs of existing brands from the bank to be deleted.

  2. Delete brands with Bulk Delete Brands with list of the brands IDs:

Copy
1
Was this helpful?
Yes
No