From 4bf0e0e117c3cbbb11186d4c7dd0eeb781febf5e Mon Sep 17 00:00:00 2001 From: etwodev Date: Sun, 5 Oct 2025 14:46:36 +0100 Subject: [PATCH] chore: update main.go --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 283b6de..8094fb4 100644 --- a/main.go +++ b/main.go @@ -71,7 +71,7 @@ func request(client *http.Client, method, url string, body interface{}) (*http.R return nil, fmt.Errorf("failed to create request: %w", err) } - req.Header.Set("Authorization", "Bearer "+portainerToken) + req.Header.Set("X-API-Key", portainerToken) req.Header.Set("Content-Type", "application/json") return client.Do(req) }