# Brands Managing brands in the e-shop. **Please note**, the **field `code` is deprecated** - use `indexName` instead. Parameter `code` accepts both: guid string style, e.g. `d467bfbe-4334-11ef-ad70-0242ac1f0005`, and index name string style, e.g. `willy-wonka`. **The index name string style is deprecated** - use guid style. ## List of brands - [GET /api/brands](https://api.docs.shoptet.com/shoptet-api/openapi/brands/getlistofbrands.md): Returns the list of brands. Supports the Paging ## Creation of brand - [POST /api/brands](https://api.docs.shoptet.com/shoptet-api/openapi/brands/createbrand.md) ## Detail of brand - [GET /api/brands/{code}](https://api.docs.shoptet.com/shoptet-api/openapi/brands/getdetailofbrand.md) ## Update of brand - [PATCH /api/brands/{code}](https://api.docs.shoptet.com/shoptet-api/openapi/brands/updatebrand.md) ## Deletion of brand - [DELETE /api/brands/{code}](https://api.docs.shoptet.com/shoptet-api/openapi/brands/deletebrand.md): If the brand cannot be deleted, because it is used by some product, a 409 code is returned. Optional parameter with value allows deletion of brand used by products. ## BATCH creation of brands - [POST /api/brands/batch](https://api.docs.shoptet.com/shoptet-api/openapi/brands/createbrandbatch.md): This endpoint allows you to create multiple brands at once. Batch creation is processed asynchronously in same way as for example products snapshot, but it does not have in response. Instead, you can check attribute which contains successfully created brands and errors. See how [Asynchronous requests](https://developers.shoptet.com/asynchronous-requests/) work on our developer's portal. File with data for update must be in JSONL (jsonlines) format. Each line must contain one brand in JSON format. Maximum size of file is 100MB. Structure of JSON row is same as structure of JSON for single brand creation above. Asynchronous job process jsonl file row by row and try to validate and save data. If there is any error, row is skipped and error is logged, but it does not stop processing of other rows. In Log, every product is identified by its position in file (starting from 1).