Clatter LabsHelp Center

How do I make a whole bucket public with the API?

How-toUpdated
curl -X PATCH https://api.codebuckets.clatterlabs.xyz/v1/buckets/BUCKET_ID/visibility \
  -H "Authorization: Bearer $CLATTER_API_KEY" -H "X-Clatter-Account: $CLATTER_ACCOUNT_ID" \
  -H "Content-Type: application/json" -d '{"visibility": "public"}'

Or in the Console: open the bucket › Settings › Access.

  • Every file set to inherit becomes public and gets a link.
  • Files explicitly set to private stay private.
  • The code preview tree is never public.

A bucket.visibility_changed event records how many files follow the bucket.

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.xyz
For deleting your whole account or the data of one service.