Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-10-16 09:07:06 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2019-10-16 09:07:06 +0300
commit3546e1bb0971347e9e9984de0799e3fb53743b33 (patch)
treef65e47d5deb95905aa419ebd70ce02c7b32ddb8f /doc/api/project_snippets.md
parentf155cc9034f2247c5d368f9b0212ad44248b0c5e (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/project_snippets.md')
-rw-r--r--doc/api/project_snippets.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/project_snippets.md b/doc/api/project_snippets.md
index c2a39fd2178..7a6c90701ba 100644
--- a/doc/api/project_snippets.md
+++ b/doc/api/project_snippets.md
@@ -78,7 +78,7 @@ Parameters:
- `title` (required) - The title of a snippet
- `file_name` (required) - The name of a snippet file
- `description` (optional) - The description of a snippet
-- `code` (required) - The content of a snippet
+- `content` (required) - The content of a snippet
- `visibility` (required) - The snippet's visibility
Example request:
@@ -97,7 +97,7 @@ curl --request POST https://gitlab.com/api/v4/projects/:id/snippets \
"title" : "Example Snippet Title",
"description" : "More verbose snippet description",
"file_name" : "example.txt",
- "code" : "source code \n with multiple lines\n",
+ "content" : "source code \n with multiple lines\n",
"visibility" : "private"
}
```
@@ -117,7 +117,7 @@ Parameters:
- `title` (optional) - The title of a snippet
- `file_name` (optional) - The name of a snippet file
- `description` (optional) - The description of a snippet
-- `code` (optional) - The content of a snippet
+- `content` (optional) - The content of a snippet
- `visibility` (optional) - The snippet's visibility
Example request:
@@ -136,7 +136,7 @@ curl --request PUT https://gitlab.com/api/v4/projects/:id/snippets \
"title" : "Updated Snippet Title",
"description" : "More verbose snippet description",
"file_name" : "new_filename.txt",
- "code" : "updated source code \n with multiple lines\n",
+ "content" : "updated source code \n with multiple lines\n",
"visibility" : "private"
}
```