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) }