diff --git a/lib/api/builds.rb b/lib/api/builds.rb
index e65dfa88746ef230fea39ee9c2b1a0342109edb7..237a88adcc7867ee4d307ea0d37ebffa9508444b 100644
--- a/lib/api/builds.rb
+++ b/lib/api/builds.rb
@@ -80,8 +80,8 @@ module API
       #   ref_name (required) - The ref from repository
       #   job (required) - The name for the build
       # Example Request:
-      #   GET /projects/:id/artifacts/download/:ref_name?job=name
-      get ':id/builds/artifacts/download/:ref_name',
+      #   GET /projects/:id/artifacts/:ref_name/download?job=name
+      get ':id/builds/artifacts/:ref_name/download',
         requirements: { ref_name: /.+/ } do
         builds = user_project.builds_for(params[:job], params[:ref_name])
 
diff --git a/spec/requests/api/builds_spec.rb b/spec/requests/api/builds_spec.rb
index d226646e43955f591fbf3eb849462da41db17328..59ea7992023961b3fe6ad9201f0f562989d29838 100644
--- a/spec/requests/api/builds_spec.rb
+++ b/spec/requests/api/builds_spec.rb
@@ -187,12 +187,12 @@ describe API::API, api: true do
     end
   end
 
-  describe 'GET /projects/:id/artifacts/:ref_name/:build_name' do
+  describe 'GET /projects/:id/artifacts/:ref_name/download?job=name' do
     include_context 'artifacts from ref and build name'
 
     def path_from_ref(ref = pipeline.sha, job = build.name)
       api(
-        "/projects/#{project.id}/builds/artifacts/download/#{ref}?job=#{job}",
+        "/projects/#{project.id}/builds/artifacts/#{ref}/download?job=#{job}",
         user)
     end