Skip to main content
PATCH
/
buckets
/
{filesystem}
Update object storage bucket
curl --request PATCH \
  --url https://cloud.laravel.com/api/buckets/{filesystem} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "visibility": "private",
  "allowed_origins": [
    "<string>"
  ],
  "cors_settings": {
    "allowed_origins": [
      "<string>"
    ],
    "allowed_methods": [
      "GET"
    ],
    "allowed_headers": [
      "<string>"
    ],
    "expose_headers": [
      "<string>"
    ],
    "max_age_seconds": 2
  }
}
'
{
  "data": {
    "id": "<string>",
    "type": "filesystems",
    "relationships": {}
  },
  "included": [
    {
      "id": "<string>",
      "type": "filesystemKeys",
      "relationships": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

The Bearer Token generated on the Cloud UI.

Path Parameters

filesystem
string
required

The filesystem identifier

Body

application/json
name
string
Required string length: 3 - 40
Pattern: ^[a-z0-9_-]+$
visibility
enum<string>
Available options:
private,
public
allowed_origins
string<uri>[] | null

This field is deprecated and will be removed May 17th, 2026. Please use cors_settings.allowed_origins instead.

cors_settings
object

Response

FilesystemResource

data
FilesystemResource · object
required
included
FilesystemKeyResource · object[]