| PUT | /recipe/{RecipeId/protocol} |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| RecipeId | body | long | No | |
| Protocol | body | CreateRecipeProtocolDto | No | |
| Label | body | CreateRecipeLabelDto | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ProtocolIngredients | form | List<ProtocolIngredientDto> | No | |
| BottlingType | form | BottlingType | No | |
| Signature | form | string | No | |
| ManufacturedByGuideline | form | bool | No | |
| HygieneInstructionsFollowed | form | bool | No | |
| CleaningInstructionsFollowed | form | bool | No | |
| ManufactureInstructionsFollowed | form | bool | No | |
| Units | form | int | No | |
| SingleSize | form | int | No | |
| DripBottleChargeNo | form | string | No | |
| ProtocolSignature | form | string | No | |
| UnitOfMeasure | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | long | No | |
| EssenceId | form | long | No | |
| EssenceName | form | string | No | |
| ProductGroup | form | ProductGroup | No | |
| Ethanol | form | float | No | |
| ExpiryDate | form | DateTime? | No | |
| ChargeNo | form | string | No | |
| Symptom | form | string | No | |
| IsAmount | form | decimal | No | |
| ShouldAmount | form | decimal | No | |
| SelectedLot | form | AssortmentLotItemDto | No |
| Name | Value | |
|---|---|---|
| Spagyric | 1 | |
| Herbs | 3 | |
| Tinctures | 4 | |
| MineralSolution | 6 | |
| LMPotency | 7 | |
| Custom | 9 | |
| BudExtract | 10 |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | long | No | |
| AssortmentId | form | long | No | |
| ChargeNo | form | string | No | |
| ExpiryDate | form | DateTime? | No |
| Name | Value | |
|---|---|---|
| AdHoc | 1 | |
| Bulk | 2 |
| 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 |
| Name | Value | |
|---|---|---|
| de | 1 | |
| fr | 2 | |
| it | 3 |
| 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 .jsv suffix or ?format=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.build.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,
selectedLot:
{
id: 0,
assortmentId: 0,
chargeNo: String,
expiryDate: 0001-01-01
}
}
],
bottlingType: 1,
signature: String,
manufacturedByGuideline: False,
hygieneInstructionsFollowed: False,
cleaningInstructionsFollowed: False,
manufactureInstructionsFollowed: False,
units: 0,
singleSize: 0,
dripBottleChargeNo: String,
protocolSignature: String,
unitOfMeasure: String
},
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,
emulsionPrefix: 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
}
}