Skip to main content
PATCH
/
v1
/
scraped-products
/
manage
/
categories
/
{id}
Update category
curl --request PATCH \
  --url http://localhost:3000/v1/scraped-products/manage/categories/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "is_active": true,
  "display_order": 123,
  "image_url": "<string>"
}
'
{
  "success": true,
  "category": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "parent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "description": "<string>",
    "is_active": true,
    "display_order": 123,
    "image_url": "<string>",
    "level": 123,
    "category_path": "<string>",
    "created_at": "<string>",
    "updated_at": "<string>"
  }
}

Path Parameters

id
string<uuid>
required

Category UUID

Body

application/json

Update category request

name
string

Category name

Required string length: 1 - 100
description
string | null

Description

Maximum string length: 500
is_active
boolean

Is active

display_order
integer

Display order

image_url
string<uri> | null

Image URL

Response

Updated category

Update category response

success
enum<boolean>
required
Available options:
true,
false
category
object
required

Category