PUT
/
{storeId}
/
categories
/
curl --request PUT \
  --url https://partner-api.aasaan.shop/api/v1/partner-integrations/stores/{storeId}/categories/ \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "id": "ae7219",
    "name": "Shampoo",
    "slug": "shampoo",
    "description": "Hair categories",
    "hide": "<string>",
    "displayOrder": "<string>",
    "parentCategoryId": "6124bc492f3660f743776404",
    "image": {
      "id": "<string>",
      "url": "https://images.aasaan.app/123412421",
      "type": "image/png"
    }
  }
]'
{
  "categories": [
    {
      "id": "623d3455ec3c4b3548eb4a322",
      "name": "Shampoo",
      "slug": "shampoo",
      "description": "Hair categories",
      "hide": "<string>",
      "displayOrder": "<string>",
      "parentCategoryId": "6124bc492f3660f743776404",
      "image": {
        "id": "<string>",
        "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": [
    "Category with CategoryId - category-id-1 is missing name"
  ]
}

Path Parameters

storeId
string
required

Store ID for this resource request

Body

application/json · object[]
id
string
required

id

name
string
required

Name

slug
string

Slug

description
string

Shampoos and conditioners

hide
string

Hide a category

displayOrder
string

Display order

parentCategoryId
string

Parent category id

image
object

Category image

Response

201 - application/json
categories
object[]
errors
string[]