module Gitlab::Client::Snippets

def edit_snippet(project, id, options = {})

Returns:
  • (Gitlab::ObjectifiedHash) - Information about updated snippet.

Options Hash: (**options)
  • :visibility (String) -- The visibility of a snippet
  • :lifetime (String) -- The expiration date of a snippet.
  • :code (String) -- The content of a snippet.
  • :file_name (String) -- The name of a snippet file.
  • :title (String) -- The title of a snippet.

Parameters:
  • options (Hash) -- A customizable set of options.
  • id (Integer) -- The ID of a snippet.
  • project (Integer, String) -- The ID or name of a project.
def edit_snippet(project, id, options = {})
  put("/projects/#{url_encode project}/snippets/#{id}", body: options)
end