fix(NET-1044): use new update acls endpoint (#2842)

allow for updating both node and client acls
This commit is contained in:
Aceix 2024-03-05 11:02:27 +00:00 committed by GitHub
parent 8227e7899c
commit b8c1dde152
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,5 +14,5 @@ func GetACL(networkName string) *acls.ACLContainer {
// UpdateACL - update an ACL
func UpdateACL(networkName string, payload *acls.ACLContainer) *acls.ACLContainer {
return request[acls.ACLContainer](http.MethodPut, fmt.Sprintf("/api/networks/%s/acls", networkName), payload)
return request[acls.ACLContainer](http.MethodPut, fmt.Sprintf("/api/networks/%s/acls/v2", networkName), payload)
}