ProductAddon

Edit a addon relation

put/products/{productId}/addons/{addonId}

Request

  • Base URL
    https://api.c1st.com/api
  • URL
    https://api.c1st.com/api/products/{productId}/addons/{addonId}
  • Auth
    HTTP bearer

Path parameters

productIdinteger required

The product ID

addonIdinteger required

The add-on id

Request body

productnostring
productidinteger nullable
addonproductidinteger
amountinteger
addonpricenumber double nullable
updated_atstring

Example request

{
  "product": {
    "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

Changes

No recorded changes to this operation across all 1 revision of this API.