Pular para o conteúdo principal
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 o Playground da API abaixo para enviar esta requisição com sua X-Api-Key. A URL base e os cabeçalhos são preenchidos automaticamente; atualize quaisquer campos de caminho, consulta ou corpo e clique em Enviar.

Autorizações

X-Api-Key
string
header
obrigatório

Parâmetros de caminho

id
string
obrigatório

Corpo

application/json
id
string

ULID

name
string
sku
string | null
type
enum<string>
Opções disponíveis:
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>

Resposta

200 - application/json

OK

id
string

ULID

name
string
sku
string | null
type
enum<string>
Opções disponíveis:
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>