diff options
Diffstat (limited to 'lib/api/discussions.rb')
-rw-r--r-- | lib/api/discussions.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/api/discussions.rb b/lib/api/discussions.rb index 8ff275a3a1b..0dd1850e526 100644 --- a/lib/api/discussions.rb +++ b/lib/api/discussions.rb @@ -74,6 +74,11 @@ module API optional :height, type: Integer, desc: 'Height of the image' optional :x, type: Integer, desc: 'X coordinate in the image' optional :y, type: Integer, desc: 'Y coordinate in the image' + + optional :line_range, type: Hash, desc: 'Multi-line start and end' do + requires :start_line_code, type: String, desc: 'Start line code for multi-line note' + requires :end_line_code, type: String, desc: 'End line code for multi-line note' + end end end post ":id/#{noteables_path}/:noteable_id/discussions" do |