From b4eec0f6c7b27ff047e821e0b4d987c90098b303 Mon Sep 17 00:00:00 2001 From: SergioLangaritaBenitez Date: Tue, 26 May 2026 15:58:21 +0200 Subject: [PATCH] fix: include bucket_name in UpdateBucket payload --- pkg/storage/storage.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/storage/storage.go b/pkg/storage/storage.go index 6b9cae0..5542931 100644 --- a/pkg/storage/storage.go +++ b/pkg/storage/storage.go @@ -591,9 +591,11 @@ func UpdateBucket(c *cluster.Cluster, name, visibility string, allowedUsers []st if err != nil { return cluster.ErrParsingEndpoint } - endpoint.Path = path.Join(endpoint.Path, "system", "buckets", trimmed) + endpoint.Path = path.Join(endpoint.Path, "system", "buckets") - payload := map[string]interface{}{} + payload := map[string]interface{}{ + "bucket_name": trimmed, + } if visibility != "" { payload["visibility"] = visibility }