# Update a Brand

## Update a brand by id

<mark style="color:orange;">`PUT`</mark> `https://{{accountSlug}}.myeshopbox.com/api/v1/brand/{id}`

This API updates the existing brand by the id.

#### Path Parameters

| Name | Type   | Description            |
| ---- | ------ | ---------------------- |
| id   | string | Unique id of the brand |

#### Headers

| Name           | Type   | Description                                                 |
| -------------- | ------ | ----------------------------------------------------------- |
| Authentication | string | Bearer ACCESS\_TOKEN : To grant the access against the API. |

#### Request Body

| Name                     | Type   | Description                                                                                       |
| ------------------------ | ------ | ------------------------------------------------------------------------------------------------- |
| brandName                | string | Name of the brand                                                                                 |
| verticals                | string | Verticals object (which contains verticalId and verticalName) linked with the brand               |
| brandStatus              | object | Status of the brand `Enum : 0 , 1` (0 if the brand is inactive, 1 if the brand is active)         |
| webSiteLink              | string | Website link of the brand                                                                         |
| brandLogoImage           | string | Logo image url of the brand                                                                       |
| tmRegistrationStatus     | string | This defines the status of the Trade Mark certificate                                             |
| tmCertificateScannedCopy | string | Scanned copy of the Trade Mark certificate.                                                       |
| tmAckNo                  | string | The number assigned to the acknowledgment certificate when you apply for Trade Mark certificate.  |
| tmRegistrationNo         | string | The Trade Mark certificate registration number.                                                   |
| tmRegistrationDate       | string | The date on which you have applied for the  Trade Mark certificate                                |
| tmAckCert                | string | This is the acknowledgment certificate which proves that you have applied for the TM certificate. |

{% tabs %}
{% tab title="200 The brand is updated successfully" %}

```
{
    "id": "2",
    "brandName": "Kapas Kraft",
    "verticals": [
        {
            "verticalId": "1",
            "verticalName": "apparels",
            "verticalCode": "apl",
            "mainImage": "abc.jpg",
            "hoverImage": "abc.jpg"
        },
        {
            "verticalId": "2",
            "verticalName": "footwear",
            "verticalCode": "ftq",
            "mainImage": "abc.jpg",
            "hoverImage": "abc.jpg"
        }
    ],
    "accountId": "123",
    "brandCode": "ABC123",
    "brandStatus": "1",
    "webSiteLink": "http://Kapas Kraft",
    "brandLogoImage": "Kpas Kraft logo.jpg",
    "tmRegistrationStatus": "abc",
    "tmCertificateScannedCopy": "URL",
    "tAckNo": "1",
    "tmRegistrationNo": "123",
    "tmRegistrationDate": "2019-03-20 00:00:00",
    "tmAckCert": "URL",
    "createdAt": "2018-09-11T14:17:31.000+05:30",
    "updatedAt": "2018-09-14T19:11:38.000+05:30"
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://eshop.gitbook.io/eshopbox-developers/product/brands/update-a-brand.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
