diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-16 06:07:06 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-16 06:07:06 +0000 |
commit | 3546e1bb0971347e9e9984de0799e3fb53743b33 (patch) | |
tree | f65e47d5deb95905aa419ebd70ce02c7b32ddb8f /doc/api | |
parent | f155cc9034f2247c5d368f9b0212ad44248b0c5e (diff) | |
download | gitlab-ce-3546e1bb0971347e9e9984de0799e3fb53743b33.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/project_snippets.md | 8 |
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" } ``` |