> ## Documentation Index
> Fetch the complete documentation index at: https://help.aasaan.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a brand.

> Update a brand.



## OpenAPI

````yaml patch /brands/{brandId}
openapi: 3.0.0
info:
  title: AASAAN REST API
  version: 1.0.0
  description: >-
    REST API endpoints are organized by resource type. You’ll need to use
    different endpoints depending on your app’s requirements.
servers:
  - url: https://api.aasaan.shop/api/v1/stores
    description: Development server
security: []
tags: []
paths:
  /brands/{brandId}:
    patch:
      tags:
        - Brand
      summary: Update a brand.
      description: Update a brand.
      parameters:
        - name: brandId
          in: path
          required: true
          schema:
            type: string
            description: Brand id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BrandBody'
              type: object
      responses:
        '200':
          description: Brand updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Brand'
        '403':
          description: Invalid Api Key
        '500':
          description: Internal Server Error
      security:
        - apiKeyAuth: []
components:
  schemas:
    BrandBody:
      required:
        - name
        - image
      properties:
        name:
          type: string
          description: Name
          example: Head & Shoulders
        slug:
          type: string
          description: Slug
          example: head_shoulders
        description:
          type: string
          description: Head & Shoulders brand
          example: Head & Shoulders
        hide:
          type: boolean
          description: Hide a brand
          example: false
        displayOrder:
          type: string
          description: Display order
          example: 0
        active:
          type: boolean
          description: Activate the brand
          example: 'true'
        image:
          type: object
          description: Brand image
          properties:
            id:
              type: string
              description: Image identifier
              example: 0
            url:
              type: string
              description: Image URL
              example: https://images.aasaan.app/123412421
            type:
              type: string
              description: Mime Type
              example: image/png
    Brand:
      properties:
        id:
          type: string
          description: Unique identifier for the resource
          example: 623d3455ec3c4b3548eb4a322
        name:
          type: string
          description: Name
          example: Head & Shoulders
        slug:
          type: string
          description: Slug
          example: head_shoulders
        description:
          type: string
          description: Head & Shoulders brand
          example: Head & Shoulders
        hide:
          type: boolean
          description: Hide a brand
          example: false
        displayOrder:
          type: string
          description: Display order
          example: 0
        active:
          type: boolean
          description: Activate the brand
          example: 'true'
        image:
          type: object
          description: Brand image
          properties:
            id:
              type: string
              description: Image identifier
              example: 0
            url:
              type: string
              description: Image URL
              example: https://images.aasaan.app/123412421
            type:
              type: string
              description: Mime Type
              example: image/png
        date_created:
          type: string
          description: Created date
          example: '2022-03-25T03:17:44.092Z'
        date_modified:
          type: string
          description: Modified date
          example: '2022-06-10T07:51:12.510Z'
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````