summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r--gitlab/objects.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py
index 8638b13..8231219 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -1340,9 +1340,9 @@ class ProjectLabel(GitlabObject):
idAttr = 'name'
requiredDeleteAttrs = ['name']
requiredCreateAttrs = ['name', 'color']
- requiredUpdateAttrs = []
- # FIXME: new_name is only valid with update
- optionalCreateAttrs = ['new_name']
+ optionalCreateAttrs = ['description']
+ requiredUpdateAttrs = ['name']
+ optionalUpdateAttrs = ['new_name', 'color', 'description']
class ProjectLabelManager(BaseManager):