POST | /essence |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
TemporaryImageFileId | body | string | No | |
TemporaryImageFileExtension | body | string | No | |
Essence | body | EssenceDetailDto | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | long | No | |
Ethanol | form | double | No | |
ProductGroup | form | ProductGroup | No | |
FileName | form | string | No | |
IsActive | form | bool | No | |
Localizations | form | List<EssenceLocalizationDto> | No |
Name | Value | |
---|---|---|
Spagyric | 1 | |
Herbs | 3 | |
Tinctures | 4 | |
MineralSolution | 6 | |
LMPotency | 7 | |
Custom | 9 | |
BudExtract | 10 |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
LanguageCode | form | LanguageCode | No | |
Name | form | string | No | |
Summary | form | string | No | |
ShortDescription | form | string | No | |
ContraIndication | form | string | No |
Name | Value | |
---|---|---|
de | 1 | |
fr | 2 | |
it | 3 |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
EssenceId | form | long | No |
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.
POST /essence HTTP/1.1
Host: heidak-api.build.exanic.ch
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
temporaryImageFileId: String,
temporaryImageFileExtension: String,
essence:
{
id: 0,
ethanol: 0,
productGroup: 1,
fileName: String,
isActive: False,
localizations:
[
{
languageCode: 1,
name: String,
summary: String,
shortDescription: String,
contraIndication: String
}
]
}
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { essenceId: 0 }