---
agentTools:
  projectIndex: https://aasaan.readme.io/llms.txt
---

# Put a multiple brands

Create or update multiple brand

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "AASAAN PARTNER 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."
  },
  "components": {
    "schemas": {
      "Brand": {
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the resource that was used to create this brand",
            "example": "external-brand-id-1"
          },
          "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": "string",
            "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"
          }
        }
      },
      "BrandBodyWithId": {
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "id",
            "example": "ae7219"
          },
          "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": "string",
            "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"
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://apiservice.lightbooks-dev.io/api/v1/partner-integrations/stores",
      "description": "Development server"
    }
  ],
  "paths": {
    "/{storeId}/brands": {
      "put": {
        "summary": "Put a multiple brands",
        "tags": [
          "Brand"
        ],
        "description": "Create or update multiple brand",
        "parameters": [
          {
            "name": "storeId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Store ID for this resource request"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "object",
                  "$ref": "#/components/schemas/BrandBodyWithId"
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Brands created or update in an array and an array with errors for those brands which couldn't be updated.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "brands": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "$ref": "#/components/schemas/Brand"
                      }
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "example": "Brand with BrandId - brand-id-1 is missing name"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Invalid Api Key"
          },
          "422": {
            "description": "Data error"
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "x-amazon-apigateway-integration": {
          "type": "aws_proxy",
          "httpMethod": "PUT",
          "uri": "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:128512798967:function:aasaan-api-dev-serverless/invocations",
          "passthroughBehavior": "when_no_match",
          "responses": {
            "default": {
              "statusCode": 201
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 139,
      "2": 202,
      "3": 12,
      "4": 35,
      "5": 189,
      "6": 78,
      "7": 3,
      "8": 76,
      "9": 95,
      "10": 61,
      "11": 157
    }
  }
}
```