Zum Hauptinhalt springen

Import garnishes from JSON

POST 

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

Required API-key permission: GARNISHES_CREATE — Create garnishes

Imports garnishes from the portable JSON export format via a three-phase flow (validate / prepare-mapping / execute). Consumes exactly what the export endpoint produces. execute is all-or-nothing: if any item or referenced garnish is invalid nothing is written (400 with per-item issues), and all writes run in one transaction.

Request​

Responses​

Import garnishes from JSON