Update bucket settings
const url = 'https://example.com/api/v1/orgs/example/buckets/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"access":{"everyone":true,"grants":[{"id":"example","kind":"team","level":"share"}]},"accessKeyId":"example","caps":{"del":true,"list":true,"pub":true,"read":true,"write":true},"eventsValue":"example","maxUploadBytes":1,"pathStyle":true,"publicBaseUrl":"example","reachability":"public","secretAccessKey":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/api/v1/orgs/example/buckets/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "access": { "everyone": true, "grants": [ { "id": "example", "kind": "team", "level": "share" } ] }, "accessKeyId": "example", "caps": { "del": true, "list": true, "pub": true, "read": true, "write": true }, "eventsValue": "example", "maxUploadBytes": 1, "pathStyle": true, "publicBaseUrl": "example", "reachability": "public", "secretAccessKey": "example" }'Updates a bucket’s credentials, capabilities, upload cap, or organization access grants. Connection changes are refused on config-locked (sendcrate.yml) buckets and trigger a live ping. Requires owner or admin role in shared orgs.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Organization ID.
Resource ID within the organization.
Request Body
Section titled “Request Body”object
Who inside the organization can reach a bucket.
object
When true, every non-guest member of the organization can access the bucket.
Explicit team and member grants on the bucket.
Per-member or per-team bucket access grant.
object
Team ID or organization member ID.
Bucket permission level: share (browse, download, upload, delete, and create links) or read (browse and download only).
S3 operations declared permitted for a bucket’s credentials.
object
Key can delete objects (s3:DeleteObject).
Key can list keys (s3:ListBucket).
Key can publish objects via ACL or bucket policy for public links.
Key can read objects (s3:GetObject).
Key can write objects (s3:PutObject).
Network reachability of the bucket endpoint from recipients: public (internet-reachable) or internal (private network only; disables direct and non-CDN public links).
Responses
Section titled “Responses”Updated bucket record
object
Connected S3-compatible bucket and its health, caps, and access.
object
Who inside the organization can reach a bucket.
object
When true, every non-guest member of the organization can access the bucket.
Explicit team and member grants on the bucket.
Per-member or per-team bucket access grant.
object
Team ID or organization member ID.
Bucket permission level: share (browse, download, upload, delete, and create links) or read (browse and download only).
Underlying bucket name at the S3 provider.
S3 operations declared permitted for a bucket’s credentials.
object
Key can delete objects (s3:DeleteObject).
Key can list keys (s3:ListBucket).
Key can publish objects via ACL or bucket policy for public links.
Key can read objects (s3:GetObject).
Key can write objects (s3:PutObject).
When true, this bucket is defined in sendcrate.yml and its connection settings cannot be edited via the API.
Display name of the bucket inside Sendcrate.
Whether S3 requests use path-style URLs instead of virtual-hosted-style.
S3-compatible storage provider (aws, r2, spaces, b2, minio).
Human-readable provider name.
Short provider label.
Network reachability of the bucket endpoint from recipients: public (internet-reachable) or internal (private network only; disables direct and non-CDN public links).
Whether an active share link targets the entire bucket root.
Last observed connection health of the bucket (ok, limited, unreachable).
Example
{ "bucket": { "access": { "grants": [ { "kind": "team", "level": "share" } ] }, "myLevel": "share", "provider": "aws", "reachability": "public", "status": "ok" }}Invalid request input or rule violation.
Error returned when request input fails schema validation or violates a domain rule.
object
object
Field-level validation failures, present when schema validation fails.
object
Dot-separated field path.
Human-readable error explanation.
Example
{ "code": "BAD_REQUEST"}Authentication required or credentials invalid.
Standard REST error envelope.
object
Machine-readable error code.
Optional structured error details.
Human-readable error explanation.
Example generated
{ "code": "example", "data": "example", "message": "example"}Insufficient role, bucket grant, or token scope.
Standard REST error envelope.
object
Machine-readable error code.
Optional structured error details.
Human-readable error explanation.
Example generated
{ "code": "example", "data": "example", "message": "example"}Resource not found.
Standard REST error envelope.
object
Machine-readable error code.
Optional structured error details.
Human-readable error explanation.
Example generated
{ "code": "example", "data": "example", "message": "example"}Unexpected server error. Quote data.requestId when you report it.
Error returned when Sendcrate or one of its providers fails (5xx).
object
object
Error chain with stack traces. Present only when the server runs in development mode.
Request reference to quote when you report the error.
Human-readable error explanation.
Example
{ "code": "INTERNAL_SERVER_ERROR"}