cURL
curl --request PUT \ --url https://api.aasaan.shop/api/v1/stores/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": "623d3455ec3c4b3548eb4a322", "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" ] }
Create or update multiple brand
id
"ae7219"
Name
"Head & Shoulders"
Slug
"head_shoulders"
Head & Shoulders brand
Hide a brand
false
Display order
0
Activate the brand
"true"
Brand image
Show child attributes
Image identifier
Image URL
"https://images.aasaan.app/123412421"
Mime Type
"image/png"
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
"623d3455ec3c4b3548eb4a322"
Created date
"2022-03-25T03:17:44.092Z"
Modified date
"2022-06-10T07:51:12.510Z"