Using the GitLab API (version 8.x) it is possible to access project snippets via GET /projects/:id/snippets
(see project snippets docs).
The Python request for snippet 4
of the project pr
in the group gr
would look like (with 2%F
= /
):
r = requests.get(url='https://gitlab.domain.com/api/v3/projects/gr2%Fpr/snippets/4')
But I can't figure out a way to access a snippet, which is not associated with any project, something like https://gitlab.com/snippets/14383, although the web interface can create and display those snippets. Is there a way to do that via the API?
Further information:
I have a public snipped on a self hosted GitLab server, which leads to a 500 Server Error
somehow and I want to delete this snippet via the API.