Products
Update selected fields for a product
Updates only the fields given in content; fields that are omitted keep their current value. The product is merged with the given fields and then saved with the same validation as PUT, so the result must be a valid product (for example a unique productno and a non-empty title). content.tags and content.suppliers, when given, replace the existing lists. Changing stockno creates a stock transaction.
patch/products/{productId}
Request
- Base URLhttps://api.c1st.com/api
- URLhttps://api.c1st.com/api/products/{productId}
- AuthHTTP bearer
Path parameters
productIdinteger required
The product ID
Request body
Example request
{
"content": {
"title": "Scott Scale 960",
"price": 100,
"pricewithoutvat": 80,
"costprice": 8.65,
"recommendedretailprice": 99.95,
"suppliers": [
{
"id": 1,
"name": "Johnson",
"email": "johnson@doe.com",
"address": "A place",
"city": "London",
"note": "Sells bike parts"
}
],
"tags": [
{
"position": 23.04
}
],
"updated_at": "2022-03-10 00:00:00"
}
}Response
Ok
Example response
{
"content": {
"title": "Scott Scale 960",
"price": 100,
"pricewithoutvat": 80,
"costprice": 8.65,
"recommendedretailprice": 99.95,
"suppliers": [
{
"id": 1,
"name": "Johnson",
"email": "johnson@doe.com",
"address": "A place",
"city": "London",
"note": "Sells bike parts"
}
],
"tags": [
{
"position": 23.04
}
],
"updated_at": "2022-03-10 00:00:00"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.