Method: Gitlab::Client::Notes#edit_note

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

#edit_note(project, id, body) ⇒ Gitlab::ObjectifiedHash

Modifies a wall note.

Examples:

Gitlab.edit_note(5, 15, 'This is an edited note')

Parameters:

  • project (Integer)

    The ID of a project.

  • id (Integer)

    The ID of a note.

  • body (String)

    The content of a note.

Returns:

[View source]

253
254
255
# File 'lib/gitlab/client/notes.rb', line 253

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