Skip to main content
PUT
/
products
/
{id}
Update product
curl --request PUT \
  --url https://app.dilli.studio/api/v1/products/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "id": "<string>",
  "name": "<string>",
  "sku": "<string>",
  "type": "product",
  "description": "<string>",
  "price": 123,
  "cost": 123,
  "currency": "<string>",
  "unit": "<string>",
  "tax_rate": 123,
  "is_active": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "sku": "<string>",
  "type": "product",
  "description": "<string>",
  "price": 123,
  "cost": 123,
  "currency": "<string>",
  "unit": "<string>",
  "tax_rate": 123,
  "is_active": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}
Use the API Playground below to send this request with your X-Api-Key. The base URL and headers are prefilled; update any path, query, or body fields and click Send.

Authorizations

X-Api-Key
string
header
required

Path Parameters

id
string
required

Body

application/json
id
string

ULID

name
string
sku
string | null
type
enum<string>
Available options:
product,
service
description
string | null
price
number<float>
cost
number<float> | null
currency
string
unit
string
tax_rate
number | null
is_active
boolean
created_at
string<date-time>
updated_at
string<date-time>

Response

200 - application/json

OK

id
string

ULID

name
string
sku
string | null
type
enum<string>
Available options:
product,
service
description
string | null
price
number<float>
cost
number<float> | null
currency
string
unit
string
tax_rate
number | null
is_active
boolean
created_at
string<date-time>
updated_at
string<date-time>