desc'Update an existing label. At least one optional parameter is required.'do
detail'This feature was added in GitLab 11.8'
successEntities::GroupLabel
end
paramsdo
requires:name,type:String,desc:'The name of the label to be updated'
optional:new_name,type:String,desc:'The new name of the label'
optional:color,type:String,desc:"The new color of the label given in 6-digit hex notation with leading '#' sign (e.g. #FFAABB) or one of the allowed CSS color names"
optional:description,type:String,desc:'The new description of label'
at_least_one_of:new_name,:color,:description
end
put':id/labels'do
update_label(user_group,Entities::GroupLabel)
end
desc'Delete an existing label'do
detail'This feature was added in GitLab 11.8'
successEntities::GroupLabel
end
paramsdo
requires:name,type:String,desc:'The name of the label to be deleted'