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

Path Parameters

id
string
required

Brand id

storeId
string
required

Store ID for this resource request

Body

application/json
name
string
required

Name

Example:

"Head & Shoulders"

slug
string

Slug

Example:

"head_shoulders"

description
string

Head & Shoulders brand

Example:

"Head & Shoulders"

hide
string

Hide a brand

Example:

false

displayOrder
string

Display order

Example:

0

active
boolean

Activate the brand

Example:

"true"

image
object

Brand image

Response

201
application/json
Brand created.
id
string

Unique identifier for the resource that was used to create this brand

Example:

"external-brand-id-1"

name
string

Name

Example:

"Head & Shoulders"

slug
string

Slug

Example:

"head_shoulders"

description
string

Head & Shoulders brand

Example:

"Head & Shoulders"

hide
string

Hide a brand

Example:

false

displayOrder
string

Display order

Example:

0

active
boolean

Activate the brand

Example:

"true"

image
object

Brand image

date_created
string

Created date

Example:

"2022-03-25T03:17:44.092Z"

date_modified
string

Modified date

Example:

"2022-06-10T07:51:12.510Z"