Method: Gitlab::Client::Notes#edit_snippet_note

Defined in:
lib/gitlab/client/notes.rb

#edit_snippet_note(project, snippet, id, body) ⇒ Gitlab::ObjectifiedHash

Modifies a snippet note.

Examples:

Gitlab.edit_snippet_note(5, 11, 3, 'This is an edited snippet note')

Parameters:

  • project (Integer)

    The ID of a project.

  • snippet (Integer)

    The ID of a snippet.

  • id (Integer)

    The ID of a note.

  • body (String)

    The content of a note.

Returns:


281
282
283
# File 'lib/gitlab/client/notes.rb', line 281

def edit_snippet_note(project, snippet, id, body)
  put("/projects/#{url_encode project}/snippets/#{snippet}/notes/#{id}", body: note_content(body))
end