Brand
Put a multiple brands
GETTING STARTED
Store
Custom Domain
Category
Brand
Tag
Store Front
Brand
Put a multiple brands
Create or update multiple brand
PUT
/
{storeId}
/
brands
curl --request PUT \
--url https://partner-api.aasaan.shop/api/v1/partner-integrations/stores/{storeId}/brands \
--header 'Content-Type: application/json' \
--data '[
{
"id": "ae7219",
"name": "Head & Shoulders",
"slug": "head_shoulders",
"description": "Head & Shoulders",
"hide": false,
"displayOrder": 0,
"active": "true",
"image": {
"id": 0,
"url": "https://images.aasaan.app/123412421",
"type": "image/png"
}
}
]'
{
"brands": [
{
"id": "external-brand-id-1",
"name": "Head & Shoulders",
"slug": "head_shoulders",
"description": "Head & Shoulders",
"hide": false,
"displayOrder": 0,
"active": "true",
"image": {
"id": 0,
"url": "https://images.aasaan.app/123412421",
"type": "image/png"
},
"date_created": "2022-03-25T03:17:44.092Z",
"date_modified": "2022-06-10T07:51:12.510Z"
}
],
"errors": [
"Brand with BrandId - brand-id-1 is missing name"
]
}
Path Parameters
Store ID for this resource request
Body
application/json · object[]
id
Example:
"ae7219"
Name
Example:
"Head & Shoulders"
Slug
Example:
"head_shoulders"
Head & Shoulders brand
Example:
"Head & Shoulders"
Hide a brand
Example:
false
Display order
Example:
0
Activate the brand
Example:
"true"
Response
201
application/json
Brands created or update in an array and an array with errors for those brands which couldn't be updated.
Unique identifier for the resource that was used to create this brand
Example:
"external-brand-id-1"
Name
Example:
"Head & Shoulders"
Slug
Example:
"head_shoulders"
Head & Shoulders brand
Example:
"Head & Shoulders"
Hide a brand
Example:
false
Display order
Example:
0
Activate the brand
Example:
"true"
Created date
Example:
"2022-03-25T03:17:44.092Z"
Modified date
Example:
"2022-06-10T07:51:12.510Z"
curl --request PUT \
--url https://partner-api.aasaan.shop/api/v1/partner-integrations/stores/{storeId}/brands \
--header 'Content-Type: application/json' \
--data '[
{
"id": "ae7219",
"name": "Head & Shoulders",
"slug": "head_shoulders",
"description": "Head & Shoulders",
"hide": false,
"displayOrder": 0,
"active": "true",
"image": {
"id": 0,
"url": "https://images.aasaan.app/123412421",
"type": "image/png"
}
}
]'
{
"brands": [
{
"id": "external-brand-id-1",
"name": "Head & Shoulders",
"slug": "head_shoulders",
"description": "Head & Shoulders",
"hide": false,
"displayOrder": 0,
"active": "true",
"image": {
"id": 0,
"url": "https://images.aasaan.app/123412421",
"type": "image/png"
},
"date_created": "2022-03-25T03:17:44.092Z",
"date_modified": "2022-06-10T07:51:12.510Z"
}
],
"errors": [
"Brand with BrandId - brand-id-1 is missing name"
]
}