createBeer: Add a new beer

Description Usage Arguments Value

Description

Add a beer. Beer will be added with status of new_unverified.

Usage

1
2
3
4
5
createBeer(name, styleId, description, abv, ibu, glasswareId, srmId,
  availableId, isRetired, isOrganic, beerVariationId, year, foodPairings,
  servingTemperature, originalGravity, brewery, label,
  nutritionServingSize, calories, fat, saturatedFat, transFat, cholesterol,
  sodium, carbohydrates, dietaryFiber, sugars, protein)

Arguments

name

Required Name of the beer

styleId

Required ID corresponding to the appropriate style

description

A little bit about the beer

abv

ABV percentage of the beer

ibu

Measured IBUs of the beer

glasswareId

ID corresponding to the appropriate glassware

srmId

ID corresponding to the appropriate SRM

availableId

ID corresponding to the appropriate beer availability setting

isRetired

Whether or not the beer is produced or not Y N Default

isOrganic

Whether or not the beer is certified organic or not Y N Default

beerVariationId

ID of an existing beer that this beer is a variation of

year

Vintage of the beer, if applicable

foodPairings

Information about what foods should be paired with the beer

servingTemperature

Recommended serving temperature of the beer

originalGravity

Measured original gravity of the beer

brewery

Comma separated list of existing brewery IDs to add this beer to

label

Base64 encoded image to be assigned as the beer label

nutritionServingSize

Displays the serving size that the nutritional information based on.

calories

Total calories in beer based on serving size. Serving size is Required if this is set.

fat

Total Fat in beer based on serving size. Serving size is Required if this is set.

saturatedFat

Total Saturated Fat in beer based on serving size. Serving size is Required if this is set.

transFat

Total Trans Fat in beer based on serving size. Serving size is Required if this is set.

cholesterol

Total Cholesterol in beer based on serving size. Serving size is Required if this is set.

sodium

Total Sodium in beer based on serving size. Serving size is Required if this is set.

carbohydrates

Total Carbohydrates in beer based on serving size. Serving size is Required if this is set.

dietaryFiber

Total Dietary Fiber in beer based on serving size. Serving size is Required if this is set.

sugars

Total Sugars in beer based on serving size. Serving size is Required if this is set.

protein

Total Protein in beer based on serving size. Serving size is Required if this is set.

Value

none


samterfa/brewerydb documentation built on June 24, 2019, 12:44 a.m.