Clatter LabsHelp Center

How do I upload to Code Buckets from Windows PowerShell?

How-toUpdated

For files up to 4 MiB:

$h = @{ Authorization = "Bearer $env:CLATTER_API_KEY"; "X-Clatter-Account" = $env:CLATTER_ACCOUNT_ID }
Invoke-RestMethod -Method Post -Headers $h -ContentType "image/png" `
  -Uri "https://api.codebuckets.clatterlabs.xyz/v1/buckets/BUCKET_ID/objects?name=logo.png" `
  -InFile .\logo.png

For bigger files, run the Python or Node.js uploader from the Uploads guide; both work on Windows.

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.