heilog.ch.Api

<back to all web services

UpdateLabelRequest

The following routes are available for this service:
PUT/recipe/{RecipeId/label}
UpdateLabelRequest Parameters:
NameParameterData TypeRequiredDescription
RecipeIdbodylongNo
LabelbodyCreateRecipeLabelDtoNo
CreateRecipeLabelDto Parameters:
NameParameterData TypeRequiredDescription
CustomerIdformlong?No
LabelLanguageformLanguageCodeNo
LabelTypeformLabelTypeNo
TitleformstringNo
UsageformstringNo
IllnessformstringNo
CustomerPrefixformstringNo
CustomerNameformstringNo
IngredientPrefixformstringNo
IngredientTextformstringNo
DosagePrefixformstringNo
DosageTextformstringNo
EmulsionTextformstringNo
EthanolTextformstringNo
StorageTextformstringNo
ChargeNrPrefixformstringNo
AmountPrefixformstringNo
PricePrefixformstringNo
BarcodeformstringNo
PriceformfloatNo
ManufacturedPrefixformstringNo
BestUntilPrefixformstringNo
BestUntilformDateTime?No
ManufacturedformDateTimeNo
UnitOfMeasureformstringNo
LanguageCode Enum:
NameValue
de1
fr2
it3
LabelType Enum:
NameValue
SpagyricsHuman1
Tea2
SpagyricsAnimal3
Emulsion4
Tincture5
Homeopathie6
BudExtract7
Empty8

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/label} HTTP/1.1 
Host: heidak-api.build.exanic.ch 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	recipeId: 0,
	label: 
	{
		customerId: 0,
		labelLanguage: 1,
		labelType: 1,
		title: String,
		usage: String,
		illness: String,
		customerPrefix: String,
		customerName: String,
		ingredientPrefix: String,
		ingredientText: String,
		dosagePrefix: String,
		dosageText: String,
		emulsionText: String,
		ethanolText: String,
		storageText: String,
		chargeNrPrefix: String,
		amountPrefix: String,
		pricePrefix: String,
		barcode: String,
		price: 0,
		manufacturedPrefix: String,
		bestUntilPrefix: String,
		bestUntil: 0001-01-01,
		manufactured: 0001-01-01,
		unitOfMeasure: String
	}
}