Create a new QR code

POST /Api/QRCodes

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

Body

  • name string Required

    Minimum length is 1, maximum length is 255.

  • email string(email) Required

    Minimum length is 1, maximum length is 255.

  • Additional properties are NOT allowed

Body

  • name string Required

    Minimum length is 1, maximum length is 255.

  • email string(email) Required

    Minimum length is 1, maximum length is 255.

  • Additional properties are NOT allowed

Body

  • name string Required

    Minimum length is 1, maximum length is 255.

  • email string(email) Required

    Minimum length is 1, maximum length is 255.

  • Additional properties are NOT allowed

Responses

  • 201 application/json

    Created

    Hide response attributes Show response attributes object
    • id integer(int32)
    • name string | null
    • email string | null
    • Additional properties are NOT allowed
  • 401

    Unauthorized

  • 403

    Forbidden

curl \
 -X POST https://app.lovassy.hu/Api/QRCodes \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"name":"string","email":"hello@example.com"}'
curl \
 -X POST https://app.lovassy.hu/Api/QRCodes \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: text/json"
curl \
 -X POST https://app.lovassy.hu/Api/QRCodes \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/*+json"
Request example
{
  "name": "string",
  "email": "hello@example.com"
}
Request examples
{
  "name": "string",
  "email": "hello@example.com"
}
Request examples
{
  "name": "string",
  "email": "hello@example.com"
}
Response examples (201)
{
  "id": 42,
  "name": "string",
  "email": "string"
}