diff --git a/gitlab/mixins.py b/gitlab/mixins.py index 0c2cd949b..7da5ce983 100644 --- a/gitlab/mixins.py +++ b/gitlab/mixins.py @@ -15,6 +15,7 @@ # You should have received a copy of the GNU Lesser General Public License # along with this program. If not, see . +import urllib.parse from types import ModuleType from typing import ( Any, @@ -391,7 +392,7 @@ def update( if id is None: path = self.path else: - path = "%s/%s" % (self.path, id) + path = "%s/%s" % (self.path, urllib.parse.quote_plus(str(id))) self._check_missing_update_attrs(new_data) files = {}