module Gitlab::Client::UserSnippets
def edit_user_snippet(id, options = {})
-
(Gitlab::ObjectifiedHash)
- Information about updated snippet.
Options Hash:
(**options)
-
:visibility
(String
) -- visibility of a snippet. -
:description
(String
) -- Description of a snippet. -
:content
(String
) -- Content of a snippet. -
:file_name
(String
) -- Name of a snippet file. -
:title
(String
) -- Title of a snippet.
Parameters:
-
options
(Hash
) -- A customizable set of options. -
id
(Integer
) -- ID of snippet to update.
def edit_user_snippet(id, options = {}) put("/snippets/#{id}", body: options) end