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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	recipeId: 0,
	protocol: 
	{
		protocolIngredients: 
		[
			{
				id: 0,
				essenceId: 0,
				essenceName: String,
				productGroup: 1,
				ethanol: 0,
				expiryDate: 0001-01-01,
				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
	}
}