Shop

Creates a shop item

Required role: ADMIN

post/shop/item/

Request

  • Base URL: https://adonix.hackillinois.org
  • URL: https://adonix.hackillinois.org/shop/item/
  • Auth: none declared

Request body

namestring required
pricenumber required
isRaffleboolean required
quantitynumber required
imageURLstring required

Example request

{
  "name": "HackIllinois Branded Hoodie",
  "price": 15,
  "isRaffle": true,
  "quantity": 1,
  "imageURL": "https://raw.githubusercontent.com/HackIllinois/example/avatars/bunny.svg"
}

Response

The new item

itemIdstring required
namestring required
pricenumber required
isRaffleboolean required
quantitynumber required
imageURLstring required

Example response

{
  "itemId": "3e7eea9a-7264-4ddf-877d-9e004a888eda",
  "name": "HackIllinois Branded Hoodie",
  "price": 15,
  "isRaffle": true,
  "quantity": 1,
  "imageURL": "https://raw.githubusercontent.com/HackIllinois/example/avatars/bunny.svg"
}

Changes

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