POST
/
brands
curl --request POST \
  --url https://api.aasaan.shop/api/v1/stores/brands \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "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"
  }
}'
{
  "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"
}

Authorizations

x-api-key
string
header
required

Body

application/json

Response

201
application/json
Brand created.

The response is of type object.