Update a product

PATCH /Api/Products/{id}

Requires verified email; Requires one of the following permissions: Shop.UpdateProduct; Requires the following features to be enabled: Shop

Path parameters

  • id integer(int32) Required

Body

Responses

PATCH /Api/Products/{id}
curl \
 -X PATCH https://app.lovassy.hu/Api/Products/{id} \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"name":"string","description":"string","richTextContent":"string","visible":true,"qrCodeActivated":true,"qrCodes":[42],"price":42,"quantity":42,"userLimited":true,"userLimit":42,"inputs":[{"type":"string","key":"string","label":"string"}],"notifiedEmails":["hello@example.com"],"thumbnailUrl":"string"}'
curl \
 -X PATCH https://app.lovassy.hu/Api/Products/{id} \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: text/json"
curl \
 -X PATCH https://app.lovassy.hu/Api/Products/{id} \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/*+json"
Request examples
{
  "name": "string",
  "description": "string",
  "richTextContent": "string",
  "visible": true,
  "qrCodeActivated": true,
  "qrCodes": [
    42
  ],
  "price": 42,
  "quantity": 42,
  "userLimited": true,
  "userLimit": 42,
  "inputs": [
    {
      "type": "string",
      "key": "string",
      "label": "string"
    }
  ],
  "notifiedEmails": [
    "hello@example.com"
  ],
  "thumbnailUrl": "string"
}
Response examples (404)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}