Zum Hauptinhalt springen

Import cocktails from JSON

POST 

/api/v1/workspaces/:workspaceId/cocktails/import/json

Required API-key permission: COCKTAILS_CREATE — Create cocktail recipes

Three-phase import (validate → prepare-mapping → execute) of an export dump produced by POST /cocktails/export/json. The response shape depends on the phase and is returned verbatim (not wrapped in a data envelope). The import is all-or-nothing: every item and referenced id is validated first; on any problem nothing is written and 400 lists the issues. API keys additionally need COCKTAILS_UPDATE to overwrite existing cocktails.

Request​

Responses​

Import cocktails from JSON