PUT
/
v1
/
products
/
{product_id}
curl --request PUT \
  --url https://api.trata.ai/v1/products/{product_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "pro.1731301754.OZSMSU1S",
  "orgId": "org.1726902940.GZChqlpU",
  "active": true,
  "defaultPrice": 1299,
  "currency": "USD",
  "description": "Spicy Korean Chicken Wings",
  "name": "Spicy Korean Chicken Wings",
  "shippable": true,
  "features": [],
  "scheduleAppointment": false,
  "props": {},
  "status": "active",
  "createdBy": "trata-system",
  "createdAt": "2024-11-11T05:09:14.979287",
  "updatedBy": "trata-system",
  "updatedAt": "2024-11-11T05:09:14.979289"
}'
{
  "id": "pro.1731301754.OZSMSU1S",
  "orgId": "org.1726902940.GZChqlpU",
  "active": true,
  "defaultPrice": 1299,
  "currency": "USD",
  "description": "Spicy Korean Chicken Wings",
  "name": "Spicy Korean Chicken Wings",
  "shippable": true,
  "features": [],
  "scheduleAppointment": false,
  "props": {},
  "status": "active",
  "createdBy": "trata-system",
  "createdAt": "2024-11-11T05:09:14.979287",
  "updatedBy": "trata-system",
  "updatedAt": "2024-11-11T05:09:14.979289"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

product_id
string
required

ID of the product

Body

application/json

Response

200
application/json

Product updated successfully

Product and services offered by the business