# 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 %}
