Make a file public, change retention, enable direct download, or require an unlock secret.
Same flow in MCP: beecargo_update_share_settings
Use this endpoint after upload. The same options can also be sent during direct or remote upload.
API key required for PATCH /files/share-settings. The key must own the claimed file.
curl -X PATCH https://api.beecargo.net/files/share-settings \
-H "Authorization: Bearer YOUR_BC_KEY" \
-H "Content-Type: application/json" \
-d '{"fileId":"abc12xyz","visibility":"public","retention":"ttl","protect":true,"handoffMessage":"Private files for review"}'When protection is enabled, unlockCode and handoffUrl are returned once. Save them before discarding the response.
shortId is the public share code. It locates /d/{shortId} and is not the unlock secret.unlockCode through separate channels, or send the private handoffUrl.priceCents requires connected seller payouts (POST /connect with action=onboard). Buyers pay on /d/{shortId} before download unlocks.forever while subscribed and can choose any expiry date within 90 days.beecargo share updates the same fields (--visibility, --price-cents, --protect, …). beecargo extend FILE_ID 7d is a shortcut for --extend-ttl.protect: true again rotates the unlock credentials.Use PATCH /files/link-protection before claiming a file. Send the fileId and claimToken returned by upload, plus protect and an optional handoffMessage.