<back to all web services
UpdateLabelRequest
The following routes are available for this service:| PUT | /recipe/{RecipeId/label} | | |
|---|
UpdateLabelRequest Parameters:| Name | Parameter | Data Type | Required | Description |
|---|
| RecipeId | body | long | No | |
| Label | body | CreateRecipeLabelDto | No | |
CreateRecipeLabelDto Parameters:| Name | Parameter | Data Type | Required | Description |
|---|
| CustomerId | form | long? | No | |
| LabelLanguage | form | LanguageCode | No | |
| LabelType | form | LabelType | No | |
| Title | form | string | No | |
| Usage | form | string | No | |
| Illness | form | string | No | |
| CustomerPrefix | form | string | No | |
| CustomerName | form | string | No | |
| IngredientPrefix | form | string | No | |
| IngredientText | form | string | No | |
| DosagePrefix | form | string | No | |
| DosageText | form | string | No | |
| EmulsionPrefix | form | string | No | |
| EmulsionText | form | string | No | |
| EthanolText | form | string | No | |
| StorageText | form | string | No | |
| ChargeNrPrefix | form | string | No | |
| AmountPrefix | form | string | No | |
| PricePrefix | form | string | No | |
| Barcode | form | string | No | |
| Price | form | float | No | |
| ManufacturedPrefix | form | string | No | |
| BestUntilPrefix | form | string | No | |
| BestUntil | form | DateTime? | No | |
| Manufactured | form | DateTime | No | |
| UnitOfMeasure | form | string | No | |
LanguageCode Enum:| Name | Value | |
|---|
| de | 1 | |
| fr | 2 | |
| it | 3 | |
LabelType Enum:| Name | Value | |
|---|
| SpagyricsHuman | 1 | |
| Tea | 2 | |
| SpagyricsAnimal | 3 | |
| Emulsion | 4 | |
| Tincture | 5 | |
| Homeopathie | 6 | |
| BudExtract | 7 | |
| Empty | 8 | |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
HTTP + XML
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: application/xml
Content-Type: application/xml
Content-Length: length
<UpdateLabelRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/heilog.ch.Api.ServiceModel.Recipe">
<Label xmlns:d2p1="http://schemas.datacontract.org/2004/07/heilog.ch.Api.Dto.Recipe">
<d2p1:AmountPrefix>String</d2p1:AmountPrefix>
<d2p1:Barcode>String</d2p1:Barcode>
<d2p1:BestUntil>0001-01-01T00:00:00</d2p1:BestUntil>
<d2p1:BestUntilPrefix>String</d2p1:BestUntilPrefix>
<d2p1:ChargeNrPrefix>String</d2p1:ChargeNrPrefix>
<d2p1:CustomerId>0</d2p1:CustomerId>
<d2p1:CustomerName>String</d2p1:CustomerName>
<d2p1:CustomerPrefix>String</d2p1:CustomerPrefix>
<d2p1:DosagePrefix>String</d2p1:DosagePrefix>
<d2p1:DosageText>String</d2p1:DosageText>
<d2p1:EmulsionPrefix>String</d2p1:EmulsionPrefix>
<d2p1:EmulsionText>String</d2p1:EmulsionText>
<d2p1:EthanolText>String</d2p1:EthanolText>
<d2p1:Illness>String</d2p1:Illness>
<d2p1:IngredientPrefix>String</d2p1:IngredientPrefix>
<d2p1:IngredientText>String</d2p1:IngredientText>
<d2p1:LabelLanguage>de</d2p1:LabelLanguage>
<d2p1:LabelType>SpagyricsHuman</d2p1:LabelType>
<d2p1:Manufactured>0001-01-01T00:00:00</d2p1:Manufactured>
<d2p1:ManufacturedPrefix>String</d2p1:ManufacturedPrefix>
<d2p1:Price>0</d2p1:Price>
<d2p1:PricePrefix>String</d2p1:PricePrefix>
<d2p1:StorageText>String</d2p1:StorageText>
<d2p1:Title>String</d2p1:Title>
<d2p1:UnitOfMeasure>String</d2p1:UnitOfMeasure>
<d2p1:Usage>String</d2p1:Usage>
</Label>
<RecipeId>0</RecipeId>
</UpdateLabelRequest>