Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
369467dc
Commit
369467dc
authored
Feb 19, 2020
by
Kyle Parrish
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include ":snippet_id" in "Update snippet" and "Delete snippet" example request URL
parent
238462be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
doc/api/project_snippets.md
doc/api/project_snippets.md
+2
-2
No files found.
doc/api/project_snippets.md
View file @
369467dc
...
...
@@ -123,7 +123,7 @@ Parameters:
Example request:
```
shell
curl
--request
PUT https://gitlab.com/api/v4/projects/:id/snippets
\
curl
--request
PUT https://gitlab.com/api/v4/projects/:id/snippets
/:snippet_id
\
--header
"PRIVATE-TOKEN: <your_access_token>"
\
--header
"Content-Type: application/json"
\
-d
@snippet.json
...
...
@@ -157,7 +157,7 @@ Parameters:
Example request:
```
shell
curl
--request
DELETE https://gitlab.com/api/v4/projects/:id/snippets
\
curl
--request
DELETE https://gitlab.com/api/v4/projects/:id/snippets
/:snippet_id
\
--header
"PRIVATE-TOKEN: <your_access_token>"
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment