summaryrefslogtreecommitdiff
path: root/lib/api/runners.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/runners.rb')
-rw-r--r--lib/api/runners.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb
index 0c158745124..8ec91485b26 100644
--- a/lib/api/runners.rb
+++ b/lib/api/runners.rb
@@ -91,7 +91,9 @@ module API
# runner_id (required) - The ID of the runner
# Example Request:
# POST /projects/:id/runners/:runner_id
- post ':id/runners/:runner_id' do
+ post ':id/runners' do
+ required_attributes! [:runner_id]
+
runner = get_runner(params[:runner_id])
authenticate_enable_runner!(runner)
Ci::RunnerProject.create(runner: runner, project: user_project)