How do I turn off preview for a bucket with the API?
curl -X PATCH https://api.codebuckets.clatterlabs.xyz/v1/buckets/BUCKET_ID \
-H "Authorization: Bearer $CLATTER_API_KEY" -H "X-Clatter-Account: $CLATTER_ACCOUNT_ID" \
-H "Content-Type: application/json" -d '{"preview": false}'
Or set it when creating the bucket: {"name": "secrets-safe", "preview": false}.
What happens#
- New zips are stored without being unpacked (
preview.status: "off"). - The existing tree stays until the next upload. To be sure no unpacked copy remains, create a new bucket with preview off from the start and upload there.
Learn more#
Related articles
Still need help?
Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.
Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyzFor deleting your whole account or the data of one service.