PATCH
/
products
/
{id}
curl --request PATCH \
  --url https://api.sulu.sh/v0/products/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>"
}'
{
  "id": "<string>",
  "object": "product",
  "name": "<string>",
  "description": "<string>",
  "merchantId": "<string>",
  "metadata": {},
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Unique identifier for a product

Body

application/json
name
string

Name of the product. This will be displayed to the customer.

description
string

Description of the product. This will be displayed to the customer.

Response

200
application/json
Product updated successfully
id
string

Unique identifier for a product

object
enum<string>
default:product
Available options:
product
name
string
description
string
merchantId
string

The merchant organization that owns this product

metadata
object

Key-value pairs for storing additional data

createdAt
string
updatedAt
string