Update category

PATCH
/admin/categories/{id}

Authorization

headerx-api-key<token>

Organization-scoped API key with scope metadata.

Path Parameters

id*string

Request Body

application/json
  1. body
name?
slug?string
description?
image?|string
parentId?string
sortOrder?integer
Range-9007199254740991 <= value <= 9007199254740991

Response Body

Success

application/json
  1. response
id*string
name*
slug*string
description*|null
image*|null
parentId*string|null
productCount*number|null
Example Request
curl -X PATCH 'https://api-prood.vercel.app/v1/admin/categories/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "name": {    "property1": "string",    "property2": "string"  },  "slug": "string",  "description": {    "property1": "string",    "property2": "string"  },  "image": {    "url": "string",    "alt": "string",    "width": 0,    "height": 0  },  "parentId": "string",  "productCount": 0}