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 .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/label} HTTP/1.1 
Host: heidak-api.test.exanic.ch 
Accept: application/json
Content-Type: application/json
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-01T00:00:00.0000000","manufactured":"0001-01-01T00:00:00.0000000","unitOfMeasure":"String"}}