PUT
/
api
/
v0
/
products
/
{id}
Update a product
curl --request PUT \
  --url https://api.devdraft.ai/api/v0/products/{id} \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-client-secret: <api-key>' \
  --form 'name=Premium Software License' \
  --form 'description=Annual license for our premium software suite with advanced features, priority support, and regular updates.' \
  --form price=299.99 \
  --form currency=USD \
  --form type=DIGITAL \
  --form weight=123 \
  --form 'unit=<string>' \
  --form quantity=123 \
  --form stockCount=123 \
  --form status=ACTIVE \
  --form productType=PRODUCT \
  --form 'images=[
  "<string>"
]'

Authorizations

x-client-secret
string
header
required

Your secret API key. Keep this secure and never expose it in client-side code.

Path Parameters

id
string
required

Product ID

Body

multipart/form-data

Response

200

The product has been successfully updated.