Skip to main content

Endpoint

PUT /api/products/:id

Authentication

Authorization
string
required
Bearer token. Format: Bearer <token>

Path parameters

id
string
required
Product UUID.

Request body

name
string
Updated product display name.
sku
string
Updated stock keeping unit identifier.
price
number
Updated product price.

Response

id
string
Unique product identifier (UUID).
name
string
Product display name.
sku
string
Stock keeping unit identifier.
price
number
Product price.
tenantId
string
UUID of the tenant that owns this product.
createdAt
string
ISO 8601 timestamp of when the product was created.
updatedAt
string
ISO 8601 timestamp of the last update.

Error responses

StatusDescription
500Failed to update product.

Examples

curl --request PUT \
  --url http://localhost:5000/api/products/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "Wireless Keyboard Pro",
    "price": 59.99
  }'

Example response

{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "name": "Wireless Keyboard Pro",
  "sku": "WK-1001",
  "price": 59.99,
  "tenantId": "t9e8d7c6-b5a4-3210-fedc-ba9876543210",
  "createdAt": "2026-01-15T08:30:00.000Z",
  "updatedAt": "2026-03-24T11:45:00.000Z"
}

Build docs developers (and LLMs) love