heilog.ch.Api

<back to all web services

UpdateProtocolRequest

The following routes are available for this service:
PUT/recipe/{RecipeId/protocol}
UpdateProtocolRequest Parameters:
NameParameterData TypeRequiredDescription
RecipeIdbodylongNo
ProtocolbodyCreateRecipeProtocolDtoNo
CreateRecipeProtocolDto Parameters:
NameParameterData TypeRequiredDescription
ProtocolIngredientsformList<ProtocolIngredientDto>No
BottlingTypeformBottlingTypeNo
SignatureformstringNo
ManufacturedByGuidelineformboolNo
HygieneInstructionsFollowedformboolNo
CleaningInstructionsFollowedformboolNo
ManufactureInstructionsFollowedformboolNo
UnitsformintNo
SingleSizeformintNo
DripBottleChargeNoformstringNo
ProtocolSignatureformstringNo
UnitOfMeasureformstringNo
ProtocolIngredientDto Parameters:
NameParameterData TypeRequiredDescription
IdformlongNo
EssenceIdformlongNo
EssenceNameformstringNo
ProductGroupformProductGroupNo
EthanolformfloatNo
ExpiryDateformDateTime?No
ChargeNoformstringNo
SymptomformstringNo
IsAmountformdecimalNo
ShouldAmountformdecimalNo
ProductGroup Enum:
NameValue
Spagyric1
Herbs3
Tinctures4
MineralSolution6
LMPotency7
Custom9
BudExtract10
BottlingType Enum:
NameValue
AdHoc1
Bulk2

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /recipe/{RecipeId/protocol} HTTP/1.1 
Host: heidak-api.test.exanic.ch 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"recipeId":0,"protocol":{"protocolIngredients":[{"id":0,"essenceId":0,"essenceName":"String","productGroup":1,"ethanol":0,"expiryDate":"0001-01-01T00:00:00.0000000","chargeNo":"String","symptom":"String","isAmount":0,"shouldAmount":0}],"bottlingType":1,"signature":"String","manufacturedByGuideline":false,"hygieneInstructionsFollowed":false,"cleaningInstructionsFollowed":false,"manufactureInstructionsFollowed":false,"units":0,"singleSize":0,"dripBottleChargeNo":"String","protocolSignature":"String","unitOfMeasure":"String"}}