Export calculations as JSON
POST/api/v1/workspaces/:workspaceId/calculations/export/json
Authentication: requires a valid session or API key (no specific permission).
Returns a self-contained JSON dump of the selected calculations (metadata, cocktail items and ingredient shopping units, resolved to names) that can be re-imported via POST /calculations/import/json. A single selected calculation is returned as a bare object; multiple as an array. The exact dump shape is preserved verbatim for a lossless round-trip (not wrapped in a data envelope).
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Export calculations as JSON
No calculations selected.
Missing or invalid credentials
Insufficient permissions
No calculations found.
Export failed.