Skip to main content
PATCH
/
v1
/
scraped-products
/
{id}
Update scraped product
curl --request PATCH \
  --url http://localhost:3000/v1/scraped-products/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "brand": "<string>",
  "is_active": true,
  "category_name": "<string>",
  "subcategory_name": "<string>"
}
'
{
  "success": true,
  "product": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "brand": "<string>",
    "is_active": true,
    "updated_at": "<string>"
  }
}

Path Parameters

id
string<uuid>
required

Scraped product UUID

Example:

"550e8400-e29b-41d4-a716-446655440000"

Body

application/json

Update scraped product request

name
string

Product name

Required string length: 1 - 500
brand
string | null

Brand name

Maximum string length: 200
is_active
boolean

Active status

category_name
string | null

Category name

Maximum string length: 100
subcategory_name
string | null

Subcategory name

Maximum string length: 100

Response

Updated scraped product

Update scraped product response

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