diff --git a/docs/gl_objects/snippets.rst b/docs/gl_objects/snippets.rst index fb22594f3..1bedb0779 100644 --- a/docs/gl_objects/snippets.rst +++ b/docs/gl_objects/snippets.rst @@ -44,7 +44,7 @@ Create a snippet:: Update the snippet attributes:: - snippet.visibility_level = gitlab.Project.VISIBILITY_PUBLIC + snippet.visibility_level = gitlab.VISIBILITY_PUBLIC snippet.save() To update a snippet code you need to create a ``ProjectSnippet`` object::