Create a new product

POST /Api/Products

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

Body

Responses

curl \
 -X POST https://app.lovassy.hu/Api/Products \
 -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 POST https://app.lovassy.hu/Api/Products \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: text/json"
curl \
 -X POST https://app.lovassy.hu/Api/Products \
 -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 (201)
{
  "id": 42,
  "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": [
    "string"
  ],
  "thumbnailUrl": "string"
}