Skip to main content

Update a product

Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

Parameters

category
string
ID of category.
currency
string
Three-letter ISO currency code.
description
string
Description for the product.
name
string
required
Name for the product.
price
integer
required
Price for the product in cents.
sku
string
SKU for the product.

Returns

Returns the product object if the update succeeded. Throws an error if update parameters are invalid.

put
/api/products/{id}
curl -X PUT https://{workspace}.documocu.com/api/products/{id} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {API_KEY}'
Response
{
"category": "cat_7vd1kynnir8fxdg6qgtgvuom",
"created_at": "2024-05-14T11:24:10+00:00",
"currency": "USD",
"deleted_at": null,
"description": "Quia rerum recusandae porro perspiciatis.",
"id": "prod_0xpd94emeujod9uu4lnob9r3",
"name": "Doloribus",
"price": 29,
"sku": "c327ab9d-4f3a-3b46-a962-161634682093",
"updated_at": "2024-05-14T11:24:10+00:00"
}